From 5e6fbc7eda5c519773ba9bffb3b549a682d579a7 Mon Sep 17 00:00:00 2001 From: Srinivas Reddy Thatiparthy Date: Wed, 11 Dec 2024 17:10:48 +0530 Subject: [PATCH] Fix test failure --- Lib/test/test_bytes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index 58f51b61a1858c..48d3e14d4100ee 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -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