Commit c27ba917 authored by Jason Madden's avatar Jason Madden

Fix test_threading_2.py on PyPy3 by disabling it.

parent 762b758d
...@@ -297,7 +297,8 @@ class ThreadTests(unittest.TestCase): ...@@ -297,7 +297,8 @@ class ThreadTests(unittest.TestCase):
try: try:
import ctypes import ctypes
getattr(ctypes, 'pythonapi') # not available on PyPy getattr(ctypes, 'pythonapi') # not available on PyPy
except (ImportError,AttributeError): getattr(ctypes.pythonapi, 'PyGILState_Ensure') # not available on PyPy3
except (ImportError, AttributeError):
if verbose: if verbose:
print("test_finalize_with_runnning_thread can't import ctypes") print("test_finalize_with_runnning_thread can't import ctypes")
return # can't do anything return # can't do anything
......
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