From: Zackery Spytz Date: Mon, 30 Nov 2020 08:39:12 +0000 (-0700) Subject: bpo-42506: Fix unexpected output in test_format (GH-23564) X-Git-Tag: v3.10.0a3~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96545924780da34afc457bc22a869096af985ebf;p=thirdparty%2FPython%2Fcpython.git bpo-42506: Fix unexpected output in test_format (GH-23564) --- diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index 9653e46ecc52..6679bd3d8899 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,