diff --git a/tests/test_proc.py b/tests/test_proc.py index b32e866..728882c 100644 --- a/tests/test_proc.py +++ b/tests/test_proc.py @@ -127,7 +127,7 @@ async def test_stderr_newline_free_blob_past_64k(self) -> None: # not dropped to a LimitOverrunError mid-drain. blob = "e" * 200_000 seen: list[bytes] = [] - argv = [sys.executable, "-c", f"import sys; sys.stderr.write({blob!r}); sys.exit(4)"] + argv = [sys.executable, "-c", "import sys; sys.stderr.write('e' * 200_000); sys.exit(4)"] with pytest.raises(subprocess.CalledProcessError) as exc: await arun_cli(argv, stderr_tee=seen.append) assert exc.value.returncode == 4