Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r58770:5dc3d5ac5491
Date: 2012-11-06 23:44 +0100
http://bitbucket.org/pypy/pypy/changeset/5dc3d5ac5491/
Log: Copy some tweaks from the 2.7 version of the test suite.
diff --git a/lib-python/3.2/test/test_thread.py
b/lib-python/3.2/test/test_thread.py
--- a/lib-python/3.2/test/test_thread.py
+++ b/lib-python/3.2/test/test_thread.py
@@ -126,6 +126,7 @@
del task
while not done:
time.sleep(0.01)
+ support.gc_collect()
self.assertEqual(thread._count(), orig)
diff --git a/lib-python/3.2/test/test_threading.py
b/lib-python/3.2/test/test_threading.py
--- a/lib-python/3.2/test/test_threading.py
+++ b/lib-python/3.2/test/test_threading.py
@@ -162,6 +162,7 @@
# PyThreadState_SetAsyncExc() is a CPython-only gimmick, not (currently)
# exposed at the Python level. This test relies on ctypes to get at it.
+ @test.support.cpython_only
def test_PyThreadState_SetAsyncExc(self):
ctypes = import_module("ctypes")
@@ -262,6 +263,7 @@
finally:
threading._start_new_thread = _start_new_thread
+ @test.support.cpython_only
def test_finalize_runnning_thread(self):
# Issue 1402: the PyGILState_Ensure / _Release functions may be called
# very late on python exit: on deallocation of a running thread for
@@ -357,6 +359,7 @@
finally:
sys.setswitchinterval(old_interval)
+ @test.support.cpython_only
def test_no_refcycle_through_target(self):
class RunSelfFunction(object):
def __init__(self, should_raise):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit