Patch #650653: Raise always value error if the table is not 256 bytes long.
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py
index 3eb8785..b64917b 100644
--- a/Lib/test/string_tests.py
+++ b/Lib/test/string_tests.py
@@ -192,6 +192,8 @@
table = string.maketrans('a', 'A')
test('translate', 'abc', 'Abc', table)
test('translate', 'xyz', 'xyz', table)
+ test('translate', 'xyz', ValueError, 'too short', 'strip')
+ test('translate', 'xyz', ValueError, 'too short')
test('replace', 'one!two!three!', 'one@two!three!', '!', '@', 1)
test('replace', 'one!two!three!', 'onetwothree', '!', '')