diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 012078044bd..3fdd420e91b 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -143,7 +143,7 @@ def test_error(self): self.assertRaises(ValueError, array_reconstructor, array.array, "b", UNKNOWN_FORMAT, b"") self.assertRaises(ValueError, array_reconstructor, - array.array, "b", 22, b"") + array.array, "b", MACHINE_FORMAT_CODE_MAX + 1, b"") self.assertRaises(ValueError, array_reconstructor, array.array, "d", 16, b"a")