diff --git a/Lib/test/test_with.py b/Lib/test/test_with.py index 07522bda6..41f05c2ea 100644 --- a/Lib/test/test_with.py +++ b/Lib/test/test_with.py @@ -109,6 +109,8 @@ class FailureTestCase(unittest.TestCase): with foo: pass self.assertRaises(NameError, fooNotDeclared) + # TODO: RUSTPYTHON + @unittest.expectedFailure def testEnterAttributeError1(self): class LacksEnter(object): def __exit__(self, type, value, traceback): @@ -119,6 +121,8 @@ class FailureTestCase(unittest.TestCase): with foo: pass self.assertRaisesRegex(TypeError, 'the context manager', fooLacksEnter) + # TODO: RUSTPYTHON + @unittest.expectedFailure def testEnterAttributeError2(self): class LacksEnterAndExit(object): pass @@ -128,6 +132,8 @@ class FailureTestCase(unittest.TestCase): with foo: pass self.assertRaisesRegex(TypeError, 'the context manager', fooLacksEnterAndExit) + # TODO: RUSTPYTHON + @unittest.expectedFailure def testExitAttributeError(self): class LacksExit(object): def __enter__(self):