Skip to content

Use an array instead of a dict for local variables #2355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Dec 5, 2020
163 changes: 30 additions & 133 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Lib/test/test_builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,6 @@ def keys(self):
return 1 # used to be 'a' but that's no longer an error
self.assertRaises(TypeError, eval, 'dir()', globals(), C())

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_exec(self):
g = {}
exec('z = 1', g)
Expand Down
2 changes: 0 additions & 2 deletions Lib/test/test_grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,8 +1067,6 @@ def g2(x):
self.assertEqual(g2(False), 0)
self.assertEqual(g2(True), ('end', 1))

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_yield(self):
# Allowed as standalone statement
def g(): yield 1
Expand Down
4 changes: 0 additions & 4 deletions Lib/test/test_importlib/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@ def test_reload_loader_replaced(self):
self.assertIs(reloaded, types)
self.assertIs(sys.modules['types'], types)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_reload_location_changed(self):
name = 'spam'
with support.temp_cwd(None) as cwd:
Expand Down Expand Up @@ -295,8 +293,6 @@ def test_reload_location_changed(self):
self.maxDiff = None
self.assertEqual(ns, expected)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_reload_namespace_changed(self):
name = 'spam'
with support.temp_cwd(None) as cwd:
Expand Down
Loading