[Python-checkins] python/dist/src/Lib/test string_tests.py,1.25,1.26

loewis@users.sourceforge.net loewis@users.sourceforge.net
Thu, 12 Dec 2002 12:03:21 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv15009/Lib/test

Modified Files:
	string_tests.py 
Log Message:
Patch #650653: Raise always value error if the table is not 256 bytes long.


Index: string_tests.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/string_tests.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** string_tests.py	18 Nov 2002 16:12:11 -0000	1.25
--- string_tests.py	12 Dec 2002 20:03:19 -0000	1.26
***************
*** 193,196 ****
--- 193,198 ----
      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)