diff options
author | Zackery Spytz <zspytz@gmail.com> | 2020-11-30 08:39:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 08:39:12 (GMT) |
commit | 96545924780da34afc457bc22a869096af985ebf (patch) | |
tree | cf15f505e30c50935fdb557f27ef4ee3990ec4c5 /Lib | |
parent | 6cc2c419f6cf5ed336609ba01055e77d7c553e6d (diff) | |
download | cpython-96545924780da34afc457bc22a869096af985ebf.zip cpython-96545924780da34afc457bc22a869096af985ebf.tar.gz cpython-96545924780da34afc457bc22a869096af985ebf.tar.bz2 |
bpo-42506: Fix unexpected output in test_format (GH-23564)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_format.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index 9653e46..6679bd3 100644 --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -275,9 +275,9 @@ class FormatTest(unittest.TestCase): test_exc_common('% %s', 1, ValueError, "unsupported format character '%' (0x25) at index 2") test_exc_common('%d', '1', TypeError, - "%d format: a number is required, not str") + "%d format: a real number is required, not str") test_exc_common('%d', b'1', TypeError, - "%d format: a number is required, not bytes") + "%d format: a real number is required, not bytes") test_exc_common('%x', '1', TypeError, "%x format: an integer is required, not str") test_exc_common('%x', 3.14, TypeError, |