mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -327,6 +327,7 @@ class ThreadTests(unittest.TestCase):
|
||||||
stderr=subprocess.PIPE)
|
stderr=subprocess.PIPE)
|
||||||
stdout, stderr = p.communicate()
|
stdout, stderr = p.communicate()
|
||||||
self.assertEqual(stdout, "Woke up, sleep function is: <built-in function sleep>\n")
|
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, "")
|
self.assertEqual(stderr, "")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue