Commit 744389c5 authored by Robert Bradshaw's avatar Robert Bradshaw

Minor 2.3 changes and fixes

parent b35bb6c0
...@@ -343,7 +343,7 @@ def collect_doctests(path, module_prefix, suite, selectors): ...@@ -343,7 +343,7 @@ def collect_doctests(path, module_prefix, suite, selectors):
module = getattr(module, x) module = getattr(module, x)
if hasattr(module, "__doc__") or hasattr(module, "__test__"): if hasattr(module, "__doc__") or hasattr(module, "__test__"):
try: try:
suite.addTests(doctest.DocTestSuite(module)) suite.addTest(doctest.DocTestSuite(module))
except ValueError: # no tests except ValueError: # no tests
pass pass
......
...@@ -86,7 +86,6 @@ _ERRORS = u""" ...@@ -86,7 +86,6 @@ _ERRORS = u"""
15: 5: Calling gil-requiring function without gil 15: 5: Calling gil-requiring function without gil
24: 9: Calling gil-requiring function without gil 24: 9: Calling gil-requiring function without gil
26:12: Assignment of Python object not allowed without gil 26:12: Assignment of Python object not allowed without gil
27: 8: Constructing Python long int not allowed without gil
28: 8: Constructing complex number not allowed without gil 28: 8: Constructing complex number not allowed without gil
29:12: Accessing Python global or builtin not allowed without gil 29:12: Accessing Python global or builtin not allowed without gil
30: 8: Backquote expression not allowed without gil 30: 8: Backquote expression not allowed without gil
......
...@@ -34,9 +34,9 @@ def h(i): ...@@ -34,9 +34,9 @@ def h(i):
return 5 ** i return 5 ** i
def constant_py(): def constant_py():
result = 2L ** 10 result = (<object>2) ** 10
return result return result
def constant_long(): def constant_long():
result = 2L ** 36 result = (<object>2L) ** 36
return result return result
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