mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
return locals and cells in get_locals() not bound globals, though
This commit is contained in:
parent
8f7b94eae9
commit
552e7a7e2f
2 changed files with 5 additions and 3 deletions
|
@ -92,7 +92,7 @@ class SymtableTest(unittest.TestCase):
|
|||
func = self.spam
|
||||
self.assertEqual(func.get_parameters(), ("a", "b", "kw", "var"))
|
||||
self.assertEqual(func.get_locals(),
|
||||
("a", "b", "bar", "internal", "kw", "var", "x"))
|
||||
("a", "b", "internal", "kw", "var", "x"))
|
||||
self.assertEqual(func.get_globals(), ("bar", "glob"))
|
||||
self.assertEqual(self.internal.get_frees(), ("x",))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue