Test wouldn't work in debug mode.
We probably need a function in test_support to handle this.
This commit is contained in:
parent
eb7c377659
commit
9bd246bba9
|
@ -327,6 +327,7 @@ class ThreadTests(unittest.TestCase):
|
|||
stderr=subprocess.PIPE)
|
||||
stdout, stderr = p.communicate()
|
||||
self.assertEqual(stdout, "Woke up, sleep function is: <built-in function sleep>\n")
|
||||
stderr = re.sub(r"^\[\d+ refs\]", "", stderr, re.MULTILINE).strip()
|
||||
self.assertEqual(stderr, "")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue