diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-03 13:12:44 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-03 13:12:44 (GMT) |
commit | 04a29554c1fe0a06cdc657229bb4332eb017e3e9 (patch) | |
tree | 8b239108ffbb68db08170358790b14df39dae92f /Lib/test/test_keywordonlyarg.py | |
parent | ee71f4a8a435eadef176b9a651d5245d7be03e51 (diff) | |
download | cpython-04a29554c1fe0a06cdc657229bb4332eb017e3e9.zip cpython-04a29554c1fe0a06cdc657229bb4332eb017e3e9.tar.gz cpython-04a29554c1fe0a06cdc657229bb4332eb017e3e9.tar.bz2 |
#17032: The "global" in the "NameError: global name 'x' is not defined" error message has been removed. Patch by Ram Rachum.
Diffstat (limited to 'Lib/test/test_keywordonlyarg.py')
-rw-r--r-- | Lib/test/test_keywordonlyarg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_keywordonlyarg.py b/Lib/test/test_keywordonlyarg.py index f0580d3..e4a44c1 100644 --- a/Lib/test/test_keywordonlyarg.py +++ b/Lib/test/test_keywordonlyarg.py @@ -182,10 +182,10 @@ class KeywordOnlyArgTestCase(unittest.TestCase): with self.assertRaises(NameError) as err: def f(v=a, x=b, *, y=c, z=d): pass - self.assertEqual(str(err.exception), "global name 'b' is not defined") + self.assertEqual(str(err.exception), "name 'b' is not defined") with self.assertRaises(NameError) as err: f = lambda v=a, x=b, *, y=c, z=d: None - self.assertEqual(str(err.exception), "global name 'b' is not defined") + self.assertEqual(str(err.exception), "name 'b' is not defined") def test_main(): |