Commit 7104c729 authored by R David Murray's avatar R David Murray

#12788: fix error in test_policy when run under refleak detection

parent 9a03ecfa
......@@ -118,7 +118,9 @@ class PolicyAPITests(unittest.TestCase):
self.assertEqual(foo.defects, [defect1, defect2])
class MyPolicy(email.policy.Policy):
defects = []
defects = None
def __init__(self, *args, **kw):
super().__init__(*args, defects=[], **kw)
def register_defect(self, obj, defect):
self.defects.append(defect)
......
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