module = getattr(module, x)
if hasattr(module, "__doc__") or hasattr(module, "__test__"):
try:
- suite.addTests(doctest.DocTestSuite(module))
+ suite.addTest(doctest.DocTestSuite(module))
except ValueError: # no tests
pass
15: 5: Calling gil-requiring function without gil
24: 9: Calling gil-requiring function 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
29:12: Accessing Python global or builtin not allowed without gil
30: 8: Backquote expression not allowed without gil
return 5 ** i
def constant_py():
- result = 2L ** 10
+ result = (<object>2) ** 10
return result
def constant_long():
- result = 2L ** 36
+ result = (<object>2L) ** 36
return result