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:
Petr Viktorin 2025-11-19 14:43:42 +01:00 committed by GitHub
parent 95296a9d40
commit e2178743fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)