Kaydet (Commit) a29ac452 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

reset __class__, so multiple runs don't fail (closes #17999)

üst 2f6fe518
......@@ -44,6 +44,11 @@ class G(A):
class TestSuper(unittest.TestCase):
def tearDown(self):
# This fixes the damage that test_various___class___pathologies does.
nonlocal __class__
__class__ = TestSuper
def test_basics_working(self):
self.assertEqual(D().f(), 'ABCD')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment