Skip to content

Commit

Permalink
Update Lib/test/test_bytes.py
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Bierma <[email protected]>
  • Loading branch information
srinivasreddy and ZeroIntensity authored Dec 11, 2024
1 parent 5e6fbc7 commit 0655690
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 @@ -464,7 +464,7 @@ def test_fromhex(self):
with self.assertRaises(ValueError) as cm:
self.type2test.fromhex(value)
self.assertIn("fromhex() arg must contain an even number of hexadecimal digits", str(cm.exception))
for value, position in (("a ", 1), (" aa a ", 5),(" aa a a ", 5)):
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 {position}", str(cm.exception))
Expand Down

0 comments on commit 0655690

Please sign in to comment.