[Python-checkins] python/dist/src/Lib/test string_tests.py,1.28,1.29

doerwalter@users.sourceforge.net doerwalter@users.sourceforge.net
2003年3月26日 06:31:30 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv14334/Lib/test
Modified Files:
	string_tests.py 
Log Message:
Add two tests for simple error cases.
Index: string_tests.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/string_tests.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** string_tests.py	23 Feb 2003 23:15:26 -0000	1.28
--- string_tests.py	26 Mar 2003 14:31:25 -0000	1.29
***************
*** 629,630 ****
--- 629,634 ----
 self.checkequal(data, 'hello world', 'encode', 'zlib')
 self.checkequal('hello world', data, 'decode', 'zlib')
+ 
+ self.checkraises(TypeError, 'xyz', 'decode', 42)
+ self.checkraises(TypeError, 'xyz', 'encode', 42)
+ 

AltStyle によって変換されたページ (->オリジナル) /