]> granicus.if.org Git - python/commitdiff
Another futile error in the previous commit :-(
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 20 Oct 2009 22:05:38 +0000 (22:05 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 20 Oct 2009 22:05:38 +0000 (22:05 +0000)
Lib/test/test_threading.py

index 60ddf20636722b78065d92ce8c7990593ef8a43d..cc83476d0ce3a296fba075559a4320f51716e186 100644 (file)
@@ -321,7 +321,7 @@ class ThreadTests(unittest.TestCase):
             stderr=subprocess.PIPE)
         stdout, stderr = p.communicate()
         self.assertEqual(stdout, b"Woke up, sleep function is: <built-in function sleep>\n")
-        stderr = re.sub(br"^\[\d+ refs\]", "", stderr, re.MULTILINE).strip()
+        stderr = re.sub(br"^\[\d+ refs\]", b"", stderr, re.MULTILINE).strip()
         self.assertEqual(stderr, b"")
 
     def test_enumerate_after_join(self):