mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #3782: os.write() must not accept unicode strings
This commit is contained in:
parent
4e80cdd739
commit
9cadb1b6e0
9 changed files with 50 additions and 24 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue