Commit 08ca5148 authored by Stefan Behnel's avatar Stefan Behnel

adapted doctests for PyPy

parent de9aec9e
......@@ -2,9 +2,9 @@
__doc__ = u"""
>>> d = Defined()
>>> n = NotDefined()
>>> n = NotDefined() # doctest: +ELLIPSIS
Traceback (most recent call last):
NameError: name 'NotDefined' is not defined
NameError: ...name 'NotDefined' is not defined
"""
if True:
......
......@@ -106,9 +106,9 @@ def list_comp_module_level():
"""
>>> module_level_lc
[0, 2, 4, 6]
>>> module_level_loopvar
>>> module_level_loopvar # doctest: +ELLIPSIS
Traceback (most recent call last):
NameError: name 'module_level_loopvar' is not defined
NameError: ...name 'module_level_loopvar' is not defined
"""
module_level_list_genexp = list(module_level_genexp_loopvar*2 for module_level_genexp_loopvar in range(4))
......@@ -116,9 +116,9 @@ def genexpr_module_level():
"""
>>> module_level_list_genexp
[0, 2, 4, 6]
>>> module_level_genexp_loopvar
>>> module_level_genexp_loopvar # doctest: +ELLIPSIS
Traceback (most recent call last):
NameError: name 'module_level_genexp_loopvar' is not defined
NameError: ...name 'module_level_genexp_loopvar' is not defined
"""
def list_comp_unknown_type(l):
......
......@@ -63,9 +63,9 @@ __doc__ = u"""
>>> # errors
>>> d1, d2 = {}, {}
>>> test_dict_scope_ref(d1, d2)
>>> test_dict_scope_ref(d1, d2) # doctest: +ELLIPSIS
Traceback (most recent call last):
NameError: name 'a' is not defined
NameError: ...name 'a' is not defined
"""
#def test_module_scope():
......
......@@ -20,9 +20,9 @@ def test():
>>> p = PublicType
>>> i = InternalType
>>> i = InternalType # doctest: +ELLIPSIS
Traceback (most recent call last):
NameError: name 'InternalType' is not defined
NameError: ...name 'InternalType' is not defined
"""
p = PublicType
i = InternalType
......
......@@ -5,9 +5,9 @@ True
True
>>> X == 4*5 + 1
True
>>> NONPUBLIC
>>> NONPUBLIC # doctest: +ELLIPSIS
Traceback (most recent call last):
NameError: name 'NONPUBLIC' is not defined
NameError: ...name 'NONPUBLIC' is not defined
>>> NOWPUBLIC == 23 + 42
True
"""
......
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