Commit 3bfd4cd4 authored by Julien Muchembled's avatar Julien Muchembled

qa: fix --loop with test cases implementing setUpClass/tearDownClass

parent afd801c8
......@@ -149,7 +149,11 @@ class NeoTestRunner(unittest.TextTestResult):
traceback.print_exc()
continue
suite.addTests(loader.loadTestsFromModule(test_module))
try:
suite.run(self)
finally:
# Workaround weird behaviour of Python.
self._previousTestClass = None
def startTest(self, test):
super(NeoTestRunner, self).startTest(test)
......
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