From: Walter Dörwald Date: Sat, 5 May 2007 14:12:24 +0000 (+0000) Subject: Fix %c overflow test. X-Git-Tag: v3.0a1~1010 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db290f0162bb4c51a07a970c8c5cd61a80f48e71;p=python Fix %c overflow test. --- diff --git a/Lib/test/test_str.py b/Lib/test/test_str.py index 6869941b4f..2936dcaa5e 100644 --- a/Lib/test/test_str.py +++ b/Lib/test/test_str.py @@ -17,7 +17,7 @@ class StrTest( def test_formatting(self): string_tests.MixinStrUnicodeUserStringTest.test_formatting(self) - self.assertRaises(OverflowError, '%c'.__mod__, 0x1234) + self.assertRaises(OverflowError, '%c'.__mod__, 0x12341234) def test_iterators(self): # Make sure str objects have an __iter__ method