MCPcopy Index your code
hub / github.com/python/cpython / test_name_param

Method test_name_param

Lib/test/test_global.py:31–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29 ######################################################
30
31 def test_name_param(self):
32 prog_text = """\
33def fn(name_param):
34 global name_param
35"""
36 check_syntax_error(self, prog_text, lineno=2, offset=5)
37
38 def test_name_after_assign(self):
39 prog_text = """\

Callers

nothing calls this directly

Calls 1

check_syntax_errorFunction · 0.90

Tested by

no test coverage detected