[Python-3000-checkins] r65066 - python/branches/py3k/Lib/test/test_threading.py

benjamin.peterson python-3000-checkins at python.org
Thu Jul 17 18:55:47 CEST 2008


Author: benjamin.peterson
Date: Thu Jul 17 18:55:47 2008
New Revision: 65066

Log:
fix 2/3 of test_threading

Modified:
   python/branches/py3k/Lib/test/test_threading.py

Modified: python/branches/py3k/Lib/test/test_threading.py
==============================================================================
--- python/branches/py3k/Lib/test/test_threading.py	(original)
+++ python/branches/py3k/Lib/test/test_threading.py	Thu Jul 17 18:55:47 2008
@@ -339,7 +339,7 @@
         import subprocess
         p = subprocess.Popen([sys.executable, "-c", script], stdout=subprocess.PIPE)
         rc = p.wait()
-        self.assertEqual(p.stdout.read(), "end of main\nend of thread\n")
+        self.assertEqual(p.stdout.read().decode(), "end of main\nend of thread\n")
         self.failIf(rc == 2, "interpreter was blocked")
         self.failUnless(rc == 0, "Unexpected error")
 


More information about the Python-3000-checkins mailing list