Skip to content

Commit c37c1bb

Browse files
committed
unskip test_grammar.py
1 parent 5dc6113 commit c37c1bb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Lib/test/test_grammar.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ class CC(metaclass=CMeta):
388388
XX: 'ANNOT'
389389
self.assertEqual(CC.__annotations__['xx'], 'ANNOT')
390390

391-
@unittest.skip("TODO: RUSTPYTHON")
391+
# TODO: RUSTPYTHON
392+
@unittest.expectedFailure
392393
def test_var_annot_module_semantics(self):
393394
with self.assertRaises(AttributeError):
394395
print(test.__annotations__)
@@ -398,7 +399,8 @@ def test_var_annot_module_semantics(self):
398399
{'123': 123, 'o': type})
399400
self.assertEqual(ann_module2.__annotations__, {})
400401

401-
@unittest.skip("TODO: RUSTPYTHON")
402+
# TODO: RUSTPYTHON
403+
@unittest.expectedFailure
402404
def test_var_annot_in_module(self):
403405
# check that functions fail the same way when executed
404406
# outside of module where they were defined
@@ -1187,7 +1189,8 @@ def test_assert(self):
11871189
self.fail("'assert True, msg' should not have "
11881190
"raised an AssertionError")
11891191

1190-
@unittest.skip("TODO: RUSTPYTHON")
1192+
# TODO: RUSTPYTHON
1193+
@unittest.expectedFailure
11911194
# these tests fail if python is run with -O, so check __debug__
11921195
@unittest.skipUnless(__debug__, "Won't work if __debug__ is False")
11931196
def testAssert2(self):

0 commit comments

Comments
 (0)