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 >>> a,b = 'a *','b *' # use non-interned strings
>>> and2_assign(2,3) == (2 and 3) >>> and2_assign(2,3) == (2 and 3)
......
__doc__ = u"""
"""
>>> call_test() >>> call_test()
False False
True True
......
u""" __doc__ = u"""
>>> type(smoketest()) is dict >>> type(smoketest()) is dict
True True
......
u""" __doc__ = u"""
>>> import sys >>> import sys
>>> if not IS_PY3: sys.exc_clear() >>> if not IS_PY3: sys.exc_clear()
......
""" __doc__ = u"""
>>> f() >>> f()
3 3
>>> g() >>> g()
......
u""" __doc__ = u"""
>>> smoketest() >>> smoketest()
[0, 4, 8] [0, 4, 8]
>>> typed() >>> typed()
......
""" __doc__ = u"""
Tests accessing attributes of extension type variables Tests accessing attributes of extension type variables
set to None set to None
......
u""" __doc__ = u"""
>>> a,b = 'a *','b *' # use non-interned strings >>> a,b = 'a *','b *' # use non-interned strings
>>> or2_assign(2,3) == (2 or 3) >>> or2_assign(2,3) == (2 or 3)
......
u""" __doc__ = u"""
>>> call_method( ExtType() ).method() >>> call_method( ExtType() ).method()
1 1
""" """
......
u""" __doc__ = u"""
>>> type(test_set_literal()) is _set >>> type(test_set_literal()) is _set
True True
>>> sorted(test_set_literal()) >>> sorted(test_set_literal())
......
u""" __doc__ = u"""
>>> type(smoketest()) is not list >>> type(smoketest()) is not list
True True
>>> type(smoketest()) is _set >>> type(smoketest()) is _set
......
""" __doc__ = u"""
>>> spam(dict(test=2)) >>> spam(dict(test=2))
False False
""" """
......
u""" __doc__ = u"""
>>> try: >>> try:
... raise ValueError ... raise ValueError
... finally: ... 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