summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_keywordonlyarg.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-03-03 13:12:44 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-03-03 13:12:44 (GMT)
commit04a29554c1fe0a06cdc657229bb4332eb017e3e9 (patch)
tree8b239108ffbb68db08170358790b14df39dae92f /Lib/test/test_keywordonlyarg.py
parentee71f4a8a435eadef176b9a651d5245d7be03e51 (diff)
downloadcpython-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.py4
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():