diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_threading.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index cc83476..8c4966b 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -320,7 +320,8 @@ class ThreadTests(unittest.TestCase): stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = p.communicate() - self.assertEqual(stdout, b"Woke up, sleep function is: <built-in function sleep>\n") + self.assertEqual(stdout.strip(), + b"Woke up, sleep function is: <built-in function sleep>") stderr = re.sub(br"^\[\d+ refs\]", b"", stderr, re.MULTILINE).strip() self.assertEqual(stderr, b"") |