ó {G_Tc@svddlZddlmZmZddlZeeƒZdejfd„ƒYZd„Z e dkrre ƒndS(iÿÿÿÿN(t run_unittestt gc_collectt ModuleTestscBsPeZd„Zd„Zd„Zd„Zd„Zejd„ƒZ d„Z RS(cCsŠtjtƒ}|j|jdkƒ|jtt|ƒy$|j}|j dt |ƒƒWnt k ronX|j |j tj ƒdS(Ns __name__ = %s(t ModuleTypet__new__t assertTruet__dict__tNonet assertRaisest SystemErrortdirt__name__tfailtreprtAttributeErrort assertEqualt__doc__(tselftfoots((s,/usr/local/lib/python2.7/test/test_module.pyttest_uninitialized s  cCsWtdƒ}|j|jdƒ|j|jdƒ|j|jidd6dd6ƒdS(NRR R(RRR RRR(RR((s,/usr/local/lib/python2.7/test/test_module.pyttest_no_docstrings cCsZtddƒ}|j|jdƒ|j|jdƒ|j|jidd6dd6ƒdS(NRtfoodocR R(RRR RR(RR((s,/usr/local/lib/python2.7/test/test_module.pyttest_ascii_docstrings  cCsZtddƒ}|j|jdƒ|j|jdƒ|j|jidd6dd6ƒdS(NRu foodocሴR R(RRR RR(RR((s,/usr/local/lib/python2.7/test/test_module.pyttest_unicode_docstring%s  cCs¬tddƒ}d|_|j}|jddƒ|j|jdƒ|j|jdƒ|j|jdƒ|j|jidd6dd6dd6ƒ|j|j|kƒdS(NRu foodocሴi*RR Rtbar(RRRt__init__RR RR(RRtd((s,/usr/local/lib/python2.7/test/test_module.pyt test_reinit-s   cCs.d„}tƒ|j|ƒjddƒdS(NcSstdƒ}d|_|S(NRi(RR(R((s,/usr/local/lib/python2.7/test/test_module.pytf=s  Ri(RRR(RR((s,/usr/local/lib/python2.7/test/test_module.pyttest_dont_clear_dict:s cBsSg}edƒ}||_d}||jfdU~eƒ|j|dgƒdS(NRsXclass A: def __del__(self, destroyed=destroyed): destroyed.append(1) a = A()i(Rt destroyedRRR(RRtmR((s,/usr/local/lib/python2.7/test/test_module.pyttest_clear_dict_in_ref_cycleDs  ( R t __module__RRRRRtunittesttexpectedFailureRR!(((s,/usr/local/lib/python2.7/test/test_module.pyRs     cCsttƒdS(N(RR(((s,/usr/local/lib/python2.7/test/test_module.pyt test_mainQst__main__( R#ttest.test_supportRRtsysttypeRtTestCaseRR%R (((s,/usr/local/lib/python2.7/test/test_module.pyts   I