diff options
author | Guido van Rossum <guido@python.org> | 2007-08-27 23:09:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-27 23:09:25 (GMT) |
commit | e22905a06c0632cb1c5fefcbbb51c0675ae21bba (patch) | |
tree | 0e5fc8d57800a489e01468f9b024663087ab5fbd /Lib/test/test_largefile.py | |
parent | 25a29a9534ea8bbfce297eb92c82741833fe04eb (diff) | |
download | cpython-e22905a06c0632cb1c5fefcbbb51c0675ae21bba.zip cpython-e22905a06c0632cb1c5fefcbbb51c0675ae21bba.tar.gz cpython-e22905a06c0632cb1c5fefcbbb51c0675ae21bba.tar.bz2 |
More changes needed to make things work once bytes and str are truly divorced.
Diffstat (limited to 'Lib/test/test_largefile.py')
-rw-r--r-- | Lib/test/test_largefile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_largefile.py b/Lib/test/test_largefile.py index 1535a73..a0933fe 100644 --- a/Lib/test/test_largefile.py +++ b/Lib/test/test_largefile.py @@ -39,7 +39,7 @@ else: # 2**31 == 2147483648 f.seek(2147483649) # Seeking is not enough of a test: you must write and flush, too! - f.write("x") + f.write(b"x") f.flush() except (IOError, OverflowError): f.close() @@ -70,10 +70,10 @@ if test_support.verbose: print('create large file via seek (may be sparse file) ...') f = open(name, 'wb') try: - f.write('z') + f.write(b'z') f.seek(0) f.seek(size) - f.write('a') + f.write(b'a') f.flush() if test_support.verbose: print('check file size with os.fstat') |