Commit fb4ea137 authored by Stefan Behnel's avatar Stefan Behnel

doctests must set __doc__ in Py2.3

parent a742e84d
u"""
__doc__ = u"""
>>> a,b = 'a *','b *' # use non-interned strings
>>> and2_assign(2,3) == (2 and 3)
......
"""
__doc__ = u"""
>>> call_test()
False
True
......
u"""
__doc__ = u"""
>>> type(smoketest()) is dict
True
......
u"""
__doc__ = u"""
>>> import sys
>>> if not IS_PY3: sys.exc_clear()
......
"""
__doc__ = u"""
>>> f()
3
>>> g()
......
u"""
__doc__ = u"""
>>> smoketest()
[0, 4, 8]
>>> typed()
......
"""
__doc__ = u"""
Tests accessing attributes of extension type variables
set to None
......
u"""
__doc__ = u"""
>>> a,b = 'a *','b *' # use non-interned strings
>>> or2_assign(2,3) == (2 or 3)
......
u"""
__doc__ = u"""
>>> call_method( ExtType() ).method()
1
"""
......
u"""
__doc__ = u"""
>>> type(test_set_literal()) is _set
True
>>> sorted(test_set_literal())
......
u"""
__doc__ = u"""
>>> type(smoketest()) is not list
True
>>> type(smoketest()) is _set
......
"""
__doc__ = u"""
>>> spam(dict(test=2))
False
"""
......
u"""
__doc__ = u"""
>>> try:
... raise ValueError
... finally:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment