From 5275ef6e3a507c1a4b8f08f06db12e68ef354b88 Mon Sep 17 00:00:00 2001 From: Aviv Palivoda Date: Sat, 22 Feb 2020 14:11:50 +0200 Subject: [PATCH] Mark unsupported tests --- Lib/test/test_with.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_with.py b/Lib/test/test_with.py index b1d7a15b5..91b91f0bf 100644 --- a/Lib/test/test_with.py +++ b/Lib/test/test_with.py @@ -109,6 +109,7 @@ class FailureTestCase(unittest.TestCase): with foo: pass self.assertRaises(NameError, fooNotDeclared) + @unittest.skip("TODO: RUSTPYTHON") def testEnterAttributeError1(self): class LacksEnter(object): def __exit__(self, type, value, traceback): @@ -119,6 +120,8 @@ class FailureTestCase(unittest.TestCase): with foo: pass self.assertRaisesRegex(AttributeError, '__enter__', fooLacksEnter) + # TODO: RUSTPYTHON + @unittest.expectedFailure def testEnterAttributeError2(self): class LacksEnterAndExit(object): pass @@ -726,6 +729,7 @@ class NestedWith(unittest.TestCase): self.assertTrue(a.enter_called) self.assertTrue(a.exit_called) + @unittest.skip("TODO: RUSTPYTHON") def testExceptionInExit(self): body_executed = False with self.Dummy(gobble=True) as a, self.ExitRaises():