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

Method test_nonlocal

Lib/test/test_symtable.py:280–284  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

278
279 @unittest.expectedFailure # TODO: RUSTPYTHON
280 def test_nonlocal(self):
281 self.assertFalse(self.spam.lookup("some_var").is_nonlocal())
282 self.assertTrue(self.other_internal.lookup("some_var").is_nonlocal())
283 expected = ("some_var",)
284 self.assertEqual(self.other_internal.get_nonlocals(), expected)
285
286 @unittest.expectedFailure # TODO: RUSTPYTHON
287 def test_local(self):

Callers

nothing calls this directly

Calls 6

assertFalseMethod · 0.80
assertTrueMethod · 0.80
get_nonlocalsMethod · 0.80
is_nonlocalMethod · 0.45
lookupMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected