diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index ad90010b8a..db909dea78 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -1322,6 +1322,11 @@ class MiscTestCase(unittest.TestCase): support.check__all__(self, threading, ('threading', '_thread'), extra=extra, blacklist=blacklist) + def test_without_join(self): + # Test that a thread without join does not leak references. + # Use a debug build and run "python -m test -R: test_threading" + threading.Thread().start() + class InterruptMainTests(unittest.TestCase): def test_interrupt_main_subthread(self):