From: Fred Drake Date: Tue, 9 May 2000 19:57:46 +0000 (+0000) Subject: M.-A. Lemburg : X-Git-Tag: v2.0b1~1781 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=774c931c121e6ab2e822034a222001fdb788361c;p=thirdparty%2FPython%2Fcpython.git M.-A. Lemburg : Added another test for string formatting (the one that produced the core dump now fixed in unicodeobject.c). --- diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 45449ee67b7c..fa50f813e2cd 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -263,6 +263,12 @@ assert '...%(foo)s...' % {u'foo':u"abc",'def':123} == u'...abc...' assert '...%(foo)s...' % {u'foo':u"abc",u'def':123} == u'...abc...' 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.' # Test builtin codecs