summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tempfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_tempfile.py')
-rw-r--r--Lib/test/test_tempfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py
index 0e5cb0f..0ef0925 100644
--- a/Lib/test/test_tempfile.py
+++ b/Lib/test/test_tempfile.py
@@ -314,7 +314,7 @@ class test__mkstemp_inner(TC):
if not has_textmode:
return # ugh, can't use TestSkipped.
- self.do_create(bin=0).write("blat\n")
+ self.do_create(bin=0).write(b"blat\n")
# XXX should test that the file really is a text file
test_classes.append(test__mkstemp_inner)