summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorMichael Seifert <michaelseifert04@yahoo.de>2017-04-09 07:47:12 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-04-09 07:47:12 (GMT)
commit64c8f705c0121a4b45ca2c3bc7b47b282e9efcd8 (patch)
tree5f58baf5aa8ab19a167688c1710016291f5758ca /Lib/test/test_exceptions.py
parenta2a9ddd923a849124bdd1c484f70f02df6fde0e9 (diff)
downloadcpython-64c8f705c0121a4b45ca2c3bc7b47b282e9efcd8.zip
cpython-64c8f705c0121a4b45ca2c3bc7b47b282e9efcd8.tar.gz
cpython-64c8f705c0121a4b45ca2c3bc7b47b282e9efcd8.tar.bz2
bpo-29951: Include function name for some error messages in `PyArg_ParseTuple*` (#916)
Also changed format specifier for function name from "%s" to "%.200s" and exception messages should start with lowercase letter.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index e6fa346..3378ceb 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -1090,7 +1090,7 @@ class ImportErrorTests(unittest.TestCase):
self.assertEqual(exc.name, 'somename')
self.assertEqual(exc.path, 'somepath')
- msg = "'invalid' is an invalid keyword argument for this function"
+ msg = "'invalid' is an invalid keyword argument for ImportError"
with self.assertRaisesRegex(TypeError, msg):
ImportError('test', invalid='keyword')