Kaydet (Commit) 3c1586ab authored tarafından Gregory P. Smith's avatar Gregory P. Smith

Cleanup the test added in r78517 based on Ezio Melotti's feedback.

üst c1baf4ac
...@@ -257,14 +257,10 @@ class ThreadTests(BaseTestCase): ...@@ -257,14 +257,10 @@ class ThreadTests(BaseTestCase):
threading._start_new_thread = fail_new_thread threading._start_new_thread = fail_new_thread
try: try:
t = threading.Thread(target=lambda: None) t = threading.Thread(target=lambda: None)
try: self.assertRaises(thread.error, t.start)
t.start() self.assertFalse(
assert False t in threading._limbo,
except thread.error: "Failed to cleanup _limbo map on failure of Thread.start().")
self.assertFalse(
t in threading._limbo,
"Failed to cleanup _limbo map on failure of Thread.start()."
)
finally: finally:
threading._start_new_thread = _start_new_thread threading._start_new_thread = _start_new_thread
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment