Skip to content

Commit 96e08fc

Browse files
committed
Unmark test_inspect success
1 parent 83576e4 commit 96e08fc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Lib/test/test_inspect/test_inspect.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2020,7 +2020,6 @@ def function():
20202020
_global_ref = object()
20212021
class TestGetClosureVars(unittest.TestCase):
20222022

2023-
@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: Closu[132 chars]={'print': <built-in function print>}, unbound=set()) != Closu[132 chars]={'print': <built-in function print>}, unbound={'unbound_ref'})
20242023
def test_name_resolution(self):
20252024
# Basic test of the 4 different resolution mechanisms
20262025
def f(nonlocal_ref):
@@ -2036,7 +2035,6 @@ def g(local_ref):
20362035
builtin_vars, unbound_names)
20372036
self.assertEqual(inspect.getclosurevars(f(_arg)), expected)
20382037

2039-
@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: Closu[132 chars]={'print': <built-in function print>}, unbound=set()) != Closu[132 chars]={'print': <built-in function print>}, unbound={'unbound_ref'})
20402038
def test_generator_closure(self):
20412039
def f(nonlocal_ref):
20422040
def g(local_ref):
@@ -2052,7 +2050,6 @@ def g(local_ref):
20522050
builtin_vars, unbound_names)
20532051
self.assertEqual(inspect.getclosurevars(f(_arg)), expected)
20542052

2055-
@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: Closu[132 chars]={'print': <built-in function print>}, unbound=set()) != Closu[132 chars]={'print': <built-in function print>}, unbound={'unbound_ref'})
20562053
def test_method_closure(self):
20572054
class C:
20582055
def f(self, nonlocal_ref):
@@ -2068,7 +2065,6 @@ def g(local_ref):
20682065
builtin_vars, unbound_names)
20692066
self.assertEqual(inspect.getclosurevars(C().f(_arg)), expected)
20702067

2071-
@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: Closu[139 chars]als={}, builtins={'print': <built-in function [18 chars]et()) != Closu[139 chars]als={'_global_ref': <object object at 0xa4ffee[73 chars]ef'})
20722068
def test_attribute_same_name_as_global_var(self):
20732069
class C:
20742070
_global_ref = object()
@@ -2138,21 +2134,18 @@ def _private_globals(self):
21382134
exec(code, ns)
21392135
return ns["f"], ns
21402136

2141-
@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: Closu[34 chars]uiltins={'print': <built-in function print>}, unbound=set()) != Closu[34 chars]uiltins={'print': <built-in function print>}, unbound={'path'})
21422137
def test_builtins_fallback(self):
21432138
f, ns = self._private_globals()
21442139
ns.pop("__builtins__", None)
21452140
expected = inspect.ClosureVars({}, {}, {"print":print}, {"path"})
21462141
self.assertEqual(inspect.getclosurevars(f), expected)
21472142

2148-
@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: ClosureVars(nonlocals={}, globals={}, builtins={}, unbound={'print'}) != ClosureVars(nonlocals={}, globals={}, builtins={'path': 1}, unbound={'print'})
21492143
def test_builtins_as_dict(self):
21502144
f, ns = self._private_globals()
21512145
ns["__builtins__"] = {"path":1}
21522146
expected = inspect.ClosureVars({}, {}, {"path":1}, {"print"})
21532147
self.assertEqual(inspect.getclosurevars(f), expected)
21542148

2155-
@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: Closu[38 chars]ins={}, unbound={'print'}) != Closu[38 chars]ins={'path': <module 'posixpath' from '/Users/[79 chars]nt'})
21562149
def test_builtins_as_module(self):
21572150
f, ns = self._private_globals()
21582151
ns["__builtins__"] = os

0 commit comments

Comments
 (0)