summaryrefslogtreecommitdiff
path: root/Lib/test/test_tempfile.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2008-09-15 23:02:56 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2008-09-15 23:02:56 +0000
commit9cadb1b6e0d10aaeb8f9e69e51f672a53de6b164 (patch)
treee39eac97c8d501a20d6f336ccddcc169f585271d /Lib/test/test_tempfile.py
parent4e80cdd739772406bba00a31fdd98539cdcca651 (diff)
downloadcpython-git-9cadb1b6e0d10aaeb8f9e69e51f672a53de6b164.tar.gz
Issue #3782: os.write() must not accept unicode strings
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 5a81455213..0e5cb0f2d1 100644
--- a/Lib/test/test_tempfile.py
+++ b/Lib/test/test_tempfile.py
@@ -252,7 +252,7 @@ class test__mkstemp_inner(TC):
# _mkstemp_inner can create files in a user-selected directory
dir = tempfile.mkdtemp()
try:
- self.do_create(dir=dir).write("blat")
+ self.do_create(dir=dir).write(b"blat")
finally:
os.rmdir(dir)