diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 12:26:52 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 12:26:52 (GMT) |
commit | 149d080871f9bef276a3d4fa251ba6fbc910f770 (patch) | |
tree | a798ef6ce506f98339307b244450fe1a48c70866 /Lib | |
parent | f1669a390d262bf138cd8dc954443fb0e3c8c85e (diff) | |
download | cpython-149d080871f9bef276a3d4fa251ba6fbc910f770.zip cpython-149d080871f9bef276a3d4fa251ba6fbc910f770.tar.gz cpython-149d080871f9bef276a3d4fa251ba6fbc910f770.tar.bz2 |
Issue #13410: Fixed a bug in PyUnicode_Format where it failed to properly
ignore errors from a __int__() method.
Patch based on the patch for issue #15516.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_format.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index ba3399e..633601c 100644 --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -243,6 +243,7 @@ class FormatTest(unittest.TestCase): fst = IntFails() testformat("%x", fst, '0') + testformat(u"%x", fst, '0') # Test exception for unknown format characters if verbose: |