u
"""A module to test whether doctest recognizes some 2.2 features,
like static and class methods.
We include some (random) encoded (utf-8) text in the text surrounding
the example. It should be ignored:
from test
import test_support
We include some (random) encoded (utf-8) text in the text surrounding
the example. It should be ignored:
x
= property(getx
, setx
, doc
="""\
>>> print C().statm() # 17
statm
= staticmethod(statm
)
>>> print C.clsm(22) # 18
>>> print C().clsm(23) # 19
from test
import test_doctest2
f
, t
= test_support
.run_doctest(test_doctest2
)
raise test_support
.TestFailed("expected %d tests to run, not %d" %
# Pollute the namespace with a bunch of imported functions and classes,
# to make sure they don't get tested.
if __name__
== '__main__':