summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_largefile.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-07-23 00:51:28 (GMT)
committerCollin Winter <collinw@gmail.com>2007-07-23 00:51:28 (GMT)
commitd745c436fb002177130b59386d37367719817452 (patch)
tree95dd364cc117fdde6e7ce431882d83372ba23ad2 /Lib/test/test_largefile.py
parentf86f285bdd3555e4a66ef3a3644353fe1a43e732 (diff)
downloadcpython-d745c436fb002177130b59386d37367719817452.zip
cpython-d745c436fb002177130b59386d37367719817452.tar.gz
cpython-d745c436fb002177130b59386d37367719817452.tar.bz2
Fix test_largefile by changing some string literals to byte literals.
Diffstat (limited to 'Lib/test/test_largefile.py')
-rw-r--r--Lib/test/test_largefile.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_largefile.py b/Lib/test/test_largefile.py
index f4b51ff..1535a73 100644
--- a/Lib/test/test_largefile.py
+++ b/Lib/test/test_largefile.py
@@ -89,7 +89,7 @@ if test_support.verbose:
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 @@ try:
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 @@ try:
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()