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

Merged revisions 78538 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r78538 | gregory.p.smith | 2010-02-28 19:13:36 -0800 (Sun, 28 Feb 2010) | 9 lines

  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.
  ........
................
üst 5cab2818
...@@ -229,14 +229,10 @@ class ThreadTests(unittest.TestCase): ...@@ -229,14 +229,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(threading.ThreadError, t.start)
t.start() self.assertFalse(
assert False t in threading._limbo,
except threading.ThreadError: "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