Index: Lib/test/test_with.py =================================================================== --- Lib/test/test_with.py (revision 73484) +++ Lib/test/test_with.py (working copy) @@ -314,15 +314,6 @@ pass self.assertRaises(ValueError, shouldThrowValueError) - def testSingleArgUnbound(self): - mock_contextmanager = mock_contextmanager_generator() - mock_nested = MockNested(mock_contextmanager) - with mock_nested: - self.assertInWithManagerInvariants(mock_contextmanager) - self.assertInWithManagerInvariants(mock_nested) - self.assertAfterWithManagerInvariantsNoError(mock_contextmanager) - self.assertAfterWithManagerInvariantsNoError(mock_nested) - def testMultipleArgUnbound(self): m = mock_contextmanager_generator() n = mock_contextmanager_generator() @@ -719,6 +710,7 @@ body_executed = True self.assertTrue(a.enter_called) self.assertTrue(a.exit_called) + self.assertTrue(body_executed) self.assertNotEqual(a.exc_info[0], None) def testEnterReturnsTuple(self):