1 # -*- coding: utf-8 -*-
2 u
"""A module to test whether doctest recognizes some 2.2 features,
3 like static and class methods.
8 We include some (random) encoded (utf-8) text in the text surrounding
9 the example. It should be ignored:
15 from test
import test_support
24 We include some (random) encoded (utf-8) text in the text surrounding
25 the example. It should be ignored:
67 def setx(self
, value
):
76 x
= property(getx
, setx
, doc
="""\
88 >>> print C.statm() # 16
90 >>> print C().statm() # 17
100 >>> print C.clsm(22) # 18
102 >>> print C().clsm(23) # 19
108 from test
import test_doctest2
110 f
, t
= test_support
.run_doctest(test_doctest2
)
112 raise test_support
.TestFailed("expected %d tests to run, not %d" %
115 # Pollute the namespace with a bunch of imported functions and classes,
116 # to make sure they don't get tested.
117 from doctest
import *
119 if __name__
== '__main__':