[Python-checkins] CVS: python/dist/src/Lib/test test_unicode.py,1.10,1.11
Fred Drake
python-dev@python.org
Tue, 9 May 2000 15:57:48 -0400
Update of /projects/cvsroot/python/dist/src/Lib/test
In directory seahag.cnri.reston.va.us:/home/fdrake/projects/python/Lib/test
Modified Files:
test_unicode.py
Log Message:
M.-A. Lemburg <mal@lemburg.com>:
Added another test for string formatting (the one that
produced the core dump now fixed in unicodeobject.c).
Index: test_unicode.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/test/test_unicode.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** test_unicode.py 2000/04/28 20:39:58 1.10
--- test_unicode.py 2000/05/09 19:57:46 1.11
***************
*** 264,267 ****
--- 264,273 ----
assert '...%s...%s...%s...%s...' % (1,2,3,u"abc") == u'...1...2...3...abc...'
assert '...%s...' % u"abc" == u'...abc...'
+ try:
+ '...%s...äöü...' % u"abc"
+ except ValueError:
+ pass
+ else:
+ raise AssertionError, "'...%s...äöü...' % u'abc' failed to raise an exception"
print 'done.'