;ò r!”Ac@s_dZdkZdkZdkZdkZdkTdkZdkZeed„Zd„Z dS(sThis calls the python unittest module to perform unit tests. It has some trickery to ensures that the calling module is regression tested each time it is changed, when it gets imported from elsewhere. Hopefully some will put this in the python unittest module one day. N(s*cCs0tiƒd}x|io |i}qWg}|i}x"|o|i|ƒ|i}q=W|i ƒt i ||ƒt i|ƒt i|tdƒƒx|D]…}t i|ƒt i|tdƒ|ii|ii|ifƒx=|iiƒD],\}}t i|d|t|ƒfƒqøWq£WdS(s¼ Print the usual traceback information, followed by a listing of all the local variables in each frame. code based on http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52215 isLocals by frame, innermost lastsFrame %s in %s at line %ss %20s = %sN(ssyssexc_infostbstb_nextsstackstb_framesfsappendsf_backsreverses tracebacks print_excslimitsfiles_prints_sframesf_codesco_names co_filenamesf_linenosf_localssitemsskeysvaluesrepr(slimitsfileskeysfsframesvaluestbsstack((sN/mnt/gmirror/ports/textproc/py-tvgrab/work/pytvgrab-lib-0.5.1/lib/unittest2.pysprint_exc_plus.s,      2 cCstidƒi}|idtƒ}|idtƒ}|o|oÆ|ddjo|idƒdjo›ti i t dƒ|ƒyt i d |ƒWqtj oZ}|ioG|d }|d joyti|ƒWqìqìXntidƒqqXq ndS( Nis__file__s__name__iýÿÿÿs.pys.isUnit testing %s smodulescs__main__(ssyss _getframes f_globalsscallersgetsNonesfilesmodulesfindsstderrswrites_sunittestsmains SystemExitsescodes compiled_filesossremovesexit(sescallersmodulesfiles compiled_file((sN/mnt/gmirror/ports/textproc/py-tvgrab/work/pytvgrab-lib-0.5.1/lib/unittest2.pysmainHs"'   ( s__doc__sosssyssstringsunittestsi18ns tracebacksNonesprint_exc_plussmain(sstringsunittests tracebackssyssi18nsmainsossprint_exc_plus((sN/mnt/gmirror/ports/textproc/py-tvgrab/work/pytvgrab-lib-0.5.1/lib/unittest2.pys?"s