diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-09-29 17:31:21 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-09-29 17:31:21 +0200 |
commit | 3f1e10b0b4e64973c3b9a73aa8ea0f8ed0d127fe (patch) | |
tree | cc3ca7dcbbd32858620a68361b5ae6e7499a9acc /lib-python | |
parent | test_syntax: Fix doctest exception message to match pypy (diff) | |
download | pypy-3f1e10b0b4e64973c3b9a73aa8ea0f8ed0d127fe.tar.gz pypy-3f1e10b0b4e64973c3b9a73aa8ea0f8ed0d127fe.tar.bz2 pypy-3f1e10b0b4e64973c3b9a73aa8ea0f8ed0d127fe.zip |
test_thread: fix pypy gc collection lost on update, caused test to hang
Diffstat (limited to 'lib-python')
-rw-r--r-- | lib-python/2.7/test/test_thread.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib-python/2.7/test/test_thread.py b/lib-python/2.7/test/test_thread.py index 93690a60b2..a04e960305 100644 --- a/lib-python/2.7/test/test_thread.py +++ b/lib-python/2.7/test/test_thread.py @@ -133,6 +133,8 @@ class ThreadRunningTests(BasicThreadTest): del task while not done: time.sleep(0.01) + # pypy: explicitly collect garbage + support.gc_collect() self.assertEqual(thread._count(), orig) def test_save_exception_state_on_error(self): |