diff options
author | Georg Brandl <georg@python.org> | 2008-06-04 13:01:30 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-06-04 13:01:30 (GMT) |
commit | a26f8ca668d09eff8ab03ef3d1cddb9bfbc6d124 (patch) | |
tree | 4b3704507702b98e0ce4107403a72093a5d6b9fc /Lib/test/test_format.py | |
parent | f954c4b9fb8529cc13a2e24c58137c66ac836b28 (diff) | |
download | cpython-a26f8ca668d09eff8ab03ef3d1cddb9bfbc6d124.zip cpython-a26f8ca668d09eff8ab03ef3d1cddb9bfbc6d124.tar.gz cpython-a26f8ca668d09eff8ab03ef3d1cddb9bfbc6d124.tar.bz2 |
Revert r63934 -- it was mixing two patches.
Diffstat (limited to 'Lib/test/test_format.py')
-rw-r--r-- | Lib/test/test_format.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index 8bc47d4..fb91475 100644 --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -216,8 +216,6 @@ class FormatTest(unittest.TestCase): testformat("%o", 0o42, "42") testformat("%o", -0o42, "-42") testformat("%o", float(0o42), "42") - testformat("%r", "\u0370", "'\u0370'") - testformat("%a", "\u0370", "'\\u0370'") # Test exception for unknown format characters if verbose: print('Testing exceptions') @@ -237,8 +235,8 @@ class FormatTest(unittest.TestCase): raise else: raise TestFailed('did not get expected exception: %s' % excmsg) - test_exc('abc %b', 1, ValueError, - "unsupported format character 'b' (0x62) at index 5") + test_exc('abc %a', 1, ValueError, + "unsupported format character 'a' (0x61) at index 5") #test_exc(unicode('abc %\u3000','raw-unicode-escape'), 1, ValueError, # "unsupported format character '?' (0x3000) at index 5") test_exc('%d', '1', TypeError, "%d format: a number is required, not str") |