Skip to content

Commit a2ae524

Browse files
committed
test(python): decode the subprocess handshake with universal newlines
1 parent 6ee7b6e commit a2ae524

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/test-rpc.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ def test_worker_closes_descendants_on_cancel_or_parent_exit(self):
5959
parent = """
6060
import subprocess, sys
6161
process = subprocess.Popen([sys.executable, '-I', '-B', '-c', sys.argv[1], sys.argv[2]],
62-
stdin=subprocess.DEVNULL, stdout=subprocess.PIPE)
62+
stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, text=True)
6363
try:
64-
assert process.stdout.readline() == b'ready\\n'
64+
assert process.stdout.readline() == 'ready\\n'
6565
if sys.argv[3] == 'cancel':
6666
process.wait(timeout=20)
6767
finally:

0 commit comments

Comments
 (0)