Mailing List Archive

bpo-42506: Fix unexpected output in test_format (GH-23564)
https://github.com/python/cpython/commit/96545924780da34afc457bc22a869096af985ebf
commit: 96545924780da34afc457bc22a869096af985ebf
branch: master
author: Zackery Spytz <zspytz@gmail.com>
committer: corona10 <donghee.na92@gmail.com>
date: 2020-11-30T17:39:12+09:00
summary:

bpo-42506: Fix unexpected output in test_format (GH-23564)

files:
M Lib/test/test_format.py

diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py
index 9653e46ecc52d..6679bd3d8899c 100644
--- a/Lib/test/test_format.py
+++ b/Lib/test/test_format.py
@@ -275,9 +275,9 @@ def test_common_format(self):
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,

_______________________________________________
Python-checkins mailing list
Python-checkins@python.org
https://mail.python.org/mailman/listinfo/python-checkins