commit | 9cadb1b6e0d10aaeb8f9e69e51f672a53de6b164 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Mon Sep 15 23:02:56 2008 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Mon Sep 15 23:02:56 2008 +0000 |
tree | e39eac97c8d501a20d6f336ccddcc169f585271d | |
parent | 4e80cdd739772406bba00a31fdd98539cdcca651 [diff] [blame] |
Issue #3782: os.write() must not accept unicode strings
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index 5a81455..0e5cb0f 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py
@@ -252,7 +252,7 @@ # _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)