Author: christian.heimes
Date: Sat Nov  3 12:23:06 2007
New Revision: 58825

Modified:
   python/branches/py3k-pep3137/Lib/test/test_subprocess.py
Log:
The re module doesn't support bytes (yet).

Modified: python/branches/py3k-pep3137/Lib/test/test_subprocess.py
==============================================================================
--- python/branches/py3k-pep3137/Lib/test/test_subprocess.py    (original)
+++ python/branches/py3k-pep3137/Lib/test/test_subprocess.py    Sat Nov  3 
12:23:06 2007
@@ -24,7 +24,8 @@
 # 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?$", "", stderr)
+    return re.sub("\[\d+ refs\]\r?\n?$", "", stderr.decode()).encode()
+    #return re.sub(r"\[\d+ refs\]\r?\n?$", "", stderr)
 
 class ProcessTestCase(unittest.TestCase):
     def setUp(self):
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to