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_file.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_file.py')
-rw-r--r-- | Lib/test/test_file.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_file.py b/Lib/test/test_file.py index 62b4693..f2718b2 100644 --- a/Lib/test/test_file.py +++ b/Lib/test/test_file.py @@ -21,7 +21,7 @@ class AutoFileTests(unittest.TestCase): def testWeakRefs(self): # verify weak references p = proxy(self.f) - p.write('teststring') + p.write(b'teststring') self.assertEquals(self.f.tell(), p.tell()) self.f.close() self.f = None @@ -36,7 +36,7 @@ class AutoFileTests(unittest.TestCase): def testReadinto(self): # verify readinto - self.f.write('12') + self.f.write(b'12') self.f.close() a = array('b', b'x'*10) self.f = open(TESTFN, 'rb') @@ -215,7 +215,7 @@ class OtherFileTests(unittest.TestCase): # Test the complex interaction when mixing file-iteration and the # various read* methods. dataoffset = 16384 - filler = "ham\n" + filler = b"ham\n" assert not dataoffset % len(filler), \ "dataoffset must be multiple of len(filler)" nchunks = dataoffset // len(filler) |