Skip to content

Commit 51c2ec5

Browse files
authored
Merge pull request RustPython#2355 from RustPython/coolreader18/funcvars
Use an array instead of a dict for local variables
2 parents fbc8ebc + 34bb5f0 commit 51c2ec5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1843
-1128
lines changed

Cargo.lock

Lines changed: 30 additions & 133 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Lib/test/test_builtin.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,6 @@ def keys(self):
562562
return 1 # used to be 'a' but that's no longer an error
563563
self.assertRaises(TypeError, eval, 'dir()', globals(), C())
564564

565-
# TODO: RUSTPYTHON
566-
@unittest.expectedFailure
567565
def test_exec(self):
568566
g = {}
569567
exec('z = 1', g)

Lib/test/test_grammar.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,8 +1067,6 @@ def g2(x):
10671067
self.assertEqual(g2(False), 0)
10681068
self.assertEqual(g2(True), ('end', 1))
10691069

1070-
# TODO: RUSTPYTHON
1071-
@unittest.expectedFailure
10721070
def test_yield(self):
10731071
# Allowed as standalone statement
10741072
def g(): yield 1

Lib/test/test_importlib/test_api.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,6 @@ def test_reload_loader_replaced(self):
242242
self.assertIs(reloaded, types)
243243
self.assertIs(sys.modules['types'], types)
244244

245-
# TODO: RUSTPYTHON
246-
@unittest.expectedFailure
247245
def test_reload_location_changed(self):
248246
name = 'spam'
249247
with support.temp_cwd(None) as cwd:
@@ -295,8 +293,6 @@ def test_reload_location_changed(self):
295293
self.maxDiff = None
296294
self.assertEqual(ns, expected)
297295

298-
# TODO: RUSTPYTHON
299-
@unittest.expectedFailure
300296
def test_reload_namespace_changed(self):
301297
name = 'spam'
302298
with support.temp_cwd(None) as cwd:

0 commit comments

Comments
 (0)