mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
Merged revisions 78536 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78536 | gregory.p.smith | 2010-02-28 19:09:19 -0800 (Sun, 28 Feb 2010) | 2 lines Cleanup the test added in r78517 based on Ezio Melotti's feedback. ........
This commit is contained in:
parent
c234a3c74a
commit
c5e62796f9
1 changed files with 4 additions and 8 deletions
|
@ -227,14 +227,10 @@ class ThreadTests(unittest.TestCase):
|
||||||
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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue