Skip to content

Commit

Permalink
Fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasreddy committed Dec 11, 2024
1 parent 3a75c74 commit 5e6fbc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_bytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def test_fromhex(self):
for value, position in (("a ", 1), (" aa a ", 5),(" aa a a ", 5)):
with self.assertRaises(ValueError) as cm:
self.type2test.fromhex(value)
self.assertIn(f"non-hexadecimal number found in fromhex() arg at {position}", str(cm.exception))
self.assertIn(f"non-hexadecimal number found in fromhex() arg at position {position}", str(cm.exception))

for data, pos in (
# invalid first hexadecimal character
Expand Down

0 comments on commit 5e6fbc7

Please sign in to comment.