Author: collin.winter
Date: Mon Jul 23 02:51:28 2007
New Revision: 56499

Modified:
   python/branches/py3k-struni/Lib/test/test_largefile.py
Log:
Fix test_largefile by changing some string literals to byte literals.

Modified: python/branches/py3k-struni/Lib/test/test_largefile.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_largefile.py      (original)
+++ python/branches/py3k-struni/Lib/test/test_largefile.py      Mon Jul 23 
02:51:28 2007
@@ -89,7 +89,7 @@
 f = open(name, 'rb')
 try:
     expect(f.tell(), 0)
-    expect(f.read(1), 'z')
+    expect(f.read(1), b'z')
     expect(f.tell(), 1)
     f.seek(0)
     expect(f.tell(), 0)
@@ -111,9 +111,9 @@
     expect(f.tell(), 0)
     f.seek(size)
     expect(f.tell(), size)
-    expect(f.read(1), 'a') # the 'a' that was written at the end of file above
+    expect(f.read(1), b'a') # the 'a' that was written at the end of file above
     f.seek(-size-1, 1)
-    expect(f.read(1), 'z')
+    expect(f.read(1), b'z')
     expect(f.tell(), 1)
 finally:
     f.close()
@@ -130,7 +130,7 @@
     expect(os.lseek(f.fileno(), -10, 2), size+1-10)
     expect(os.lseek(f.fileno(), -size-1, 2), 0)
     expect(os.lseek(f.fileno(), size, 0), size)
-    expect(f.read(1), 'a') # the 'a' that was written at the end of file above
+    expect(f.read(1), b'a') # the 'a' that was written at the end of file above
 finally:
     f.close()
 
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to