Skip to content

Commit 40393ec

Browse files
committed
Enable some test_threading tests
1 parent 9c7415a commit 40393ec

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎tests/suite/stdlib/test_threading.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ def load_tests(loader, standard_tests, pattern):
2323
test.test_threading.CRLockTests('test_weakref_exists'), # TypeError: cannot create weak reference to 'RLock' object
2424
test.test_threading.LockTests('test_weakref_deleted'), # TypeError: cannot create weak reference to 'lock' object
2525
test.test_threading.LockTests('test_weakref_exists'), # TypeError: cannot create weak reference to 'lock' object
26-
test.test_threading.ConditionAsRLockTests('test_weakref_deleted'), # AssertionError
27-
test.test_threading.PyRLockTests('test_weakref_deleted'), # AssertionError
2826
test.test_threading.ThreadTests('test_main_thread_during_shutdown'), # AssertionError
2927
]
3028

@@ -42,6 +40,11 @@ def load_tests(loader, standard_tests, pattern):
4240
skip_tests += [
4341
test.test_threading.ThreadJoinOnShutdown('test_4_daemon_threads'), # SystemError: Thread was being aborted
4442
]
43+
if sys.version_info >= (3, 6):
44+
skip_tests += [
45+
test.test_threading.ConditionAsRLockTests('test_weakref_deleted'), # AssertionError: conservative GC keeps the lock alive
46+
test.test_threading.PyRLockTests('test_weakref_deleted'), # AssertionError: conservative GC keeps the lock alive
47+
]
4548

4649
return generate_suite(tests, failing_tests, skip_tests)
4750

0 commit comments

Comments
 (0)