mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-135953: Avoid BytesWarning when sampling profiler tests fail (GH-141719)
With `-bb`, this failed on BytesWarning: str() on a bytes instance
This commit is contained in:
parent
95296a9d40
commit
e2178743fe
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ def test_subprocess(script):
|
|||
response = client_socket.recv(1024)
|
||||
if response != b"ready":
|
||||
raise RuntimeError(
|
||||
f"Unexpected response from subprocess: {response}"
|
||||
f"Unexpected response from subprocess: {response!r}"
|
||||
)
|
||||
|
||||
yield SubprocessInfo(proc, client_socket)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue