MCPcopy Index your code
hub / github.com/RustPython/RustPython / test1

Method test1

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

Source from the content-addressed store, hash-verified

15 # TODO: RUSTPYTHON
16 @unittest.expectedFailure
17 def test1(self):
18 prog_text_1 = """\
19def wrong1():
20 a = 1
21 b = 2
22 global a
23 global b
24"""
25 check_syntax_error(self, prog_text_1, lineno=4, offset=5)
26
27 # TODO: RUSTPYTHON
28 @unittest.expectedFailure

Callers

nothing calls this directly

Calls 1

check_syntax_errorFunction · 0.90

Tested by

no test coverage detected