Skip to content

Commit e217874

Browse files
authored
pythongh-135953: Avoid BytesWarning when sampling profiler tests fail (pythonGH-141719)
With `-bb`, this failed on BytesWarning: str() on a bytes instance
1 parent 95296a9 commit e217874

File tree

1 file changed

+1
-1
lines changed
  • Lib/test/test_profiling/test_sampling_profiler

1 file changed

+1
-1
lines changed

Lib/test/test_profiling/test_sampling_profiler/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_subprocess(script):
8383
response = client_socket.recv(1024)
8484
if response != b"ready":
8585
raise RuntimeError(
86-
f"Unexpected response from subprocess: {response}"
86+
f"Unexpected response from subprocess: {response!r}"
8787
)
8888

8989
yield SubprocessInfo(proc, client_socket)

0 commit comments

Comments
 (0)