From a083f1eb5f436c0f0efda358590fadf88ea3126c Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Wed, 10 Sep 2008 23:51:42 +0000 Subject: The Unicode database was updated to 5.1, and some characters have become printable. Change the tests and use another code point. --- Lib/test/test_format.py | 4 ++-- Lib/test/test_unicode.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index 6d32e86..c90f66d 100644 --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -216,8 +216,8 @@ class FormatTest(unittest.TestCase): testformat("%o", 0o42, "42") testformat("%o", -0o42, "-42") testformat("%o", float(0o42), "42") - testformat("%r", "\u0370", "'\\u0370'") # non printable - testformat("%a", "\u0370", "'\\u0370'") # non printable + testformat("%r", "\u0378", "'\\u0378'") # non printable + testformat("%a", "\u0378", "'\\u0378'") # non printable testformat("%r", "\u0374", "'\u0374'") # printable testformat("%a", "\u0374", "'\\u0374'") # printable # Test exception for unknown format characters diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index d8c4778..f16a78a 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -429,7 +429,7 @@ class UnicodeTest( # some defined Unicode character self.assertTrue("\u0374".isprintable()) # undefined character - self.assertFalse("\u0370".isprintable()) + self.assertFalse("\u0378".isprintable()) # single surrogate character self.assertFalse("\ud800".isprintable()) @@ -611,11 +611,11 @@ class UnicodeTest( self.assertEqual('{0!r}'.format('Hello'), "'Hello'") self.assertEqual('{0!r:}'.format('Hello'), "'Hello'") self.assertEqual('{0!r}'.format(F('Hello')), 'F(Hello)') - self.assertEqual('{0!r}'.format('\u0370'), "'\\u0370'") # nonprintable + self.assertEqual('{0!r}'.format('\u0378'), "'\\u0378'") # nonprintable self.assertEqual('{0!r}'.format('\u0374'), "'\u0374'") # printable self.assertEqual('{0!r}'.format(F('\u0374')), 'F(\u0374)') self.assertEqual('{0!a}'.format('Hello'), "'Hello'") - self.assertEqual('{0!a}'.format('\u0370'), "'\\u0370'") # nonprintable + self.assertEqual('{0!a}'.format('\u0378'), "'\\u0378'") # nonprintable self.assertEqual('{0!a}'.format('\u0374'), "'\\u0374'") # printable self.assertEqual('{0!a:}'.format('Hello'), "'Hello'") self.assertEqual('{0!a}'.format(F('Hello')), 'F(Hello)') -- cgit v0.12