Skip to content

Commit 5154d41

Browse files
authored
gh-131591: Add tests for _PdbClient (#132976)
1 parent a4b7128 commit 5154d41

File tree

2 files changed

+699
-3
lines changed

2 files changed

+699
-3
lines changed

Lib/pdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2716,7 +2716,7 @@ def _read_reply(self):
27162716
try:
27172717
payload = json.loads(msg)
27182718
except json.JSONDecodeError:
2719-
self.error(f"Disconnecting: client sent invalid JSON {msg}")
2719+
self.error(f"Disconnecting: client sent invalid JSON {msg!r}")
27202720
raise EOFError
27212721

27222722
match payload:
@@ -3023,7 +3023,7 @@ def cmdloop(self):
30233023
payload = json.loads(payload_bytes)
30243024
except json.JSONDecodeError:
30253025
print(
3026-
f"*** Invalid JSON from remote: {payload_bytes}",
3026+
f"*** Invalid JSON from remote: {payload_bytes!r}",
30273027
flush=True,
30283028
)
30293029
continue

0 commit comments

Comments
 (0)