diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-09-10 23:51:42 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-09-10 23:51:42 (GMT) |
commit | a083f1eb5f436c0f0efda358590fadf88ea3126c (patch) | |
tree | cf2159c5b758573626c97d42fbd2db70900a62f8 /Lib/test/test_unicode.py | |
parent | 75080dab8dbcebf7816dfe1310dbefe31b99d06b (diff) | |
download | cpython-a083f1eb5f436c0f0efda358590fadf88ea3126c.zip cpython-a083f1eb5f436c0f0efda358590fadf88ea3126c.tar.gz cpython-a083f1eb5f436c0f0efda358590fadf88ea3126c.tar.bz2 |
The Unicode database was updated to 5.1, and some characters have become printable.
Change the tests and use another code point.
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r-- | Lib/test/test_unicode.py | 6 |
1 files changed, 3 insertions, 3 deletions
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)') |