Index: Lib/test/test_subprocess.py =================================================================== --- Lib/test/test_subprocess.py (revision 58574) +++ Lib/test/test_subprocess.py (working copy) @@ -24,7 +24,7 @@ # shutdown time. That frustrates tests trying to check stderr produced # from a spawned Python process. def remove_stderr_debug_decorations(stderr): - return re.sub(r"\[\d+ refs\]\r?\n?$", "", str8(stderr)) + return re.sub(r"\[\d+ refs\]\r?\n?$", "", str(stderr)) class ProcessTestCase(unittest.TestCase): def setUp(self):