summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-27 23:18:54 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-27 23:18:54 (GMT)
commit26d95c3d07eb0893c7867d935d61a0fb7be43f2d (patch)
tree6c8e091b96da7f5a0fe8ce373598f5b3f1c346a6 /Lib/test/test_os.py
parente22905a06c0632cb1c5fefcbbb51c0675ae21bba (diff)
downloadcpython-26d95c3d07eb0893c7867d935d61a0fb7be43f2d.zip
cpython-26d95c3d07eb0893c7867d935d61a0fb7be43f2d.tar.gz
cpython-26d95c3d07eb0893c7867d935d61a0fb7be43f2d.tar.bz2
More str/bytes fixes.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index fe50e0c..a5f5de3 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -60,7 +60,7 @@ class TemporaryFileTests(unittest.TestCase):
if not hasattr(os, "tmpfile"):
return
fp = os.tmpfile()
- fp.write("foobar")
+ fp.write(b"foobar")
fp.seek(0)
s = fp.read()
fp.close()
@@ -100,7 +100,7 @@ class StatAttributeTests(unittest.TestCase):
os.mkdir(test_support.TESTFN)
self.fname = os.path.join(test_support.TESTFN, "f1")
f = open(self.fname, 'wb')
- f.write("ABC")
+ f.write(b"ABC")
f.close()
def tearDown(self):