From 744389c52a938c921fd47b1df9140b7398701799 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 2 Aug 2008 14:31:55 -0700 Subject: [PATCH] Minor 2.3 changes and fixes --- runtests.py | 2 +- tests/errors/nogil.pyx | 1 - tests/run/powop.pyx | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/runtests.py b/runtests.py index 4508411b..12a00ad1 100644 --- a/runtests.py +++ b/runtests.py @@ -343,7 +343,7 @@ def collect_doctests(path, module_prefix, suite, selectors): 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 diff --git a/tests/errors/nogil.pyx b/tests/errors/nogil.pyx index 17e2e434..9dfbc8cd 100644 --- a/tests/errors/nogil.pyx +++ b/tests/errors/nogil.pyx @@ -86,7 +86,6 @@ _ERRORS = u""" 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 diff --git a/tests/run/powop.pyx b/tests/run/powop.pyx index d3765a95..3d8c9b0f 100644 --- a/tests/run/powop.pyx +++ b/tests/run/powop.pyx @@ -34,9 +34,9 @@ def h(i): return 5 ** i def constant_py(): - result = 2L ** 10 + result = (2) ** 10 return result def constant_long(): - result = 2L ** 36 + result = (2L) ** 36 return result -- 2.26.2