Commit d17a14c2 authored by Jason Madden's avatar Jason Madden

Fix an AttributeError testing under leak tests.

parent bc5f27d2
......@@ -234,7 +234,10 @@ class TestCase(greentest.TestCase):
def tearDown(self):
if not self.verbose_dns:
del gevent.get_hub().exception_stream
try:
del gevent.get_hub().exception_stream
except AttributeError:
pass # Happens under leak tests
super(TestCase, self).tearDown()
def should_log_results(self, result1, result2):
......
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