diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-08-19 23:47:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-19 23:47:07 (GMT) |
commit | d11c2c607768fa549b1aed7899edc061b2ebf19f (patch) | |
tree | 8f639c3614d7d6c1e501797f27d1917160410934 /Lib/test/test_threading.py | |
parent | d3dcc92778807ae8f7ebe85178f36a29711cd478 (diff) | |
download | cpython-d11c2c607768fa549b1aed7899edc061b2ebf19f.zip cpython-d11c2c607768fa549b1aed7899edc061b2ebf19f.tar.gz cpython-d11c2c607768fa549b1aed7899edc061b2ebf19f.tar.bz2 |
Revert "bpo-37788: Fix a reference leak if a thread is not joined (GH-15228)" (GH-15338)
This reverts commit d3dcc92778807ae8f7ebe85178f36a29711cd478.
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r-- | Lib/test/test_threading.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 5e90627..7c16974 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -761,14 +761,6 @@ class ThreadTests(BaseTestCase): # Daemon threads must never add it to _shutdown_locks. self.assertNotIn(tstate_lock, threading._shutdown_locks) - def test_leak_without_join(self): - # bpo-37788: Test that a thread which is not joined explicitly - # does not leak. Test written for reference leak checks. - def noop(): pass - with support.wait_threads_exit(): - threading.Thread(target=noop).start() - # Thread.join() is not called - class ThreadJoinOnShutdown(BaseTestCase): |