mς %U²Ic@sUdZdklZdefd„ƒYZd„ZdkTedjo eƒndS(uπA module to test whether doctest recognizes some 2.2 features, like static and class methods. >>> print 'yup' # 1 yup We include some (random) encoded (utf-8) text in the text surrounding the example. It should be ignored: Π‰ΠŠΠˆΠΠ‚ (s test_supporttCcBs‡tZdZd„Zd„Zdefd„ƒYZd„Zd„Ze eeddƒZ d „Z e e ƒZ d „Z ee ƒZ RS( u΅Class C. >>> print C() # 2 42 We include some (random) encoded (utf-8) text in the text surrounding the example. It should be ignored: Π‰ΠŠΠˆΠΠ‚ cCsdS(s:C.__init__. >>> print C() # 3 42 N((tself((t//data/zmath/lib/python2.4/test/test_doctest2.pyt__init__scCsdS(s. >>> print C() # 4 42 t42N((R((Rt__str__&stDcBstZdZd„ZRS(sIA nested D class. >>> print "In D!" # 5 In D! cCsdS(s7 >>> print 3 # 6 3 N((R((Rtnested4s(t__name__t __module__t__doc__R(((RR-s cCs|i S(sf >>> c = C() # 7 >>> c.x = 12 # 8 >>> print c.x # 9 -12 N(Rt_x(R((Rtgetx:scCs ||_dS(sl >>> c = C() # 10 >>> c.x = 12 # 11 >>> print c.x # 12 -12 N(tvalueRR (RR ((RtsetxCstdocsh >>> c = C() # 13 >>> c.x = 12 # 14 >>> print c.x # 15 -12 cCsdS(sƒ A static method. >>> print C.statm() # 16 666 >>> print C().statm() # 17 666 išN((((RtstatmSscCs|S(s‚ A class method. >>> print C.clsm(22) # 18 22 >>> print C().clsm(23) # 19 23 N(tval(tclsR((Rtclsm`s(RR R RRtobjectRR RtpropertytxRt staticmethodRt classmethod(((RRs      cCsVdkl}d}ti|ƒ\}}||jotid||fƒ‚ndS(N(s test_doctest2is expected %d tests to run, not %d(ttestt test_doctest2tEXPECTEDt test_supportt run_doctesttfttt TestFailed(RRRR((Rt test_mainms   (t*t__main__N(R RRRRR!tdoctestR(RRR!((Rt? s  \