diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2008-09-15 23:02:56 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2008-09-15 23:02:56 +0000 |
commit | 9cadb1b6e0d10aaeb8f9e69e51f672a53de6b164 (patch) | |
tree | e39eac97c8d501a20d6f336ccddcc169f585271d /Lib/test/test_tempfile.py | |
parent | 4e80cdd739772406bba00a31fdd98539cdcca651 (diff) | |
download | cpython-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.py | 2 |
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) |