[Python-3000-checkins] r57573 - python/branches/py3k/Lib/test/test_io.py

guido.van.rossum python-3000-checkins at python.org
Mon Aug 27 22:44:15 CEST 2007


Author: guido.van.rossum
Date: Mon Aug 27 22:44:15 2007
New Revision: 57573

Modified:
   python/branches/py3k/Lib/test/test_io.py
Log:
Changes in anticipation of stricter str vs. bytes enforcement.


Modified: python/branches/py3k/Lib/test/test_io.py
==============================================================================
--- python/branches/py3k/Lib/test/test_io.py	(original)
+++ python/branches/py3k/Lib/test/test_io.py	Mon Aug 27 22:44:15 2007
@@ -213,7 +213,7 @@
         for bufsize in (0, 1, 100):
             f = None
             with open(test_support.TESTFN, "wb", bufsize) as f:
-                f.write("xxx")
+                f.write(b"xxx")
             self.assertEqual(f.closed, True)
             f = None
             try:


More information about the Python-3000-checkins mailing list