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

Method test_local

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

Source from the content-addressed store, hash-verified

285
286 @unittest.expectedFailure # TODO: RUSTPYTHON
287 def test_local(self):
288 self.assertTrue(self.spam.lookup("x").is_local())
289 self.assertFalse(self.spam.lookup("bar").is_local())
290 # Module-scope globals are both global and local
291 self.assertTrue(self.top.lookup("some_non_assigned_global_var").is_local())
292 self.assertTrue(self.top.lookup("some_assigned_global_var").is_local())
293
294 @unittest.expectedFailure # TODO: RUSTPYTHON
295 def test_free(self):

Callers

nothing calls this directly

Calls 4

assertTrueMethod · 0.80
assertFalseMethod · 0.80
is_localMethod · 0.45
lookupMethod · 0.45

Tested by

no test coverage detected