[Python-3000-checkins] r58825 - python/branches/py3k-pep3137/Lib/test/test_subprocess.py
christian.heimes
python-3000-checkins at python.org
Sat Nov 3 12:23:07 CET 2007
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):
More information about the Python-3000-checkins
mailing list