Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasreddy committed Dec 9, 2024
1 parent bf3ace9 commit 3588d18
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 @@ -460,7 +460,7 @@ def test_fromhex(self):
self.assertRaises(ValueError, self.type2test.fromhex, '12 \x00 34')

# For odd number of character(s)
for value in ("a", "a ", " a"," a ", "a a a", "aa a ", " aa a", " aaa "):
for value in ("a", "a ", " a"," a ", "aaa", "aaa ", " aaa", " aaa "):
with self.assertRaises(ValueError) as cm:
self.type2test.fromhex(value)
self.assertIn("fromhex() arg must be of even length", str(cm.exception))
Expand Down

0 comments on commit 3588d18

Please sign in to comment.