mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +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
|
@ -7,8 +7,8 @@ import signal
|
|||
from test.support import verbose, TestSkipped, run_unittest
|
||||
import unittest
|
||||
|
||||
TEST_STRING_1 = "I wish to buy a fish license.\n"
|
||||
TEST_STRING_2 = "For my pet fish, Eric.\n"
|
||||
TEST_STRING_1 = b"I wish to buy a fish license.\n"
|
||||
TEST_STRING_2 = b"For my pet fish, Eric.\n"
|
||||
|
||||
if verbose:
|
||||
def debug(msg):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue