Commit e7c974cb authored by Denis Bilenko's avatar Denis Bilenko

greentest.py: in dbg mode, call setUp() and tearDown() properly when executing...

greentest.py: in dbg mode, call setUp() and tearDown() properly when executing tests multiple times for refcount
parent 4b37a963
......@@ -68,9 +68,9 @@ def wrap_refcount(method):
try:
while True:
d = gettotalrefcount()
self.setUp()
method(self, *args, **kwargs)
if hasattr(self, 'cleanup'):
self.cleanup()
self.tearDown()
if 'urlparse' in sys.modules:
sys.modules['urlparse'].clear_cache()
d = gettotalrefcount() - d
......
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