Commit f279efa7 authored by Jérome Perrin's avatar Jérome Perrin

runUnitTest: trigger debugger in error during --save

parent 87f3ba91
Pipeline #26197 failed with stage
in 0 seconds
...@@ -654,9 +654,7 @@ def runUnitTestList(test_list, verbosity=1, debug=0, run_only=None): ...@@ -654,9 +654,7 @@ def runUnitTestList(test_list, verbosity=1, debug=0, run_only=None):
ERP5TypeTestLoader._testMethodPrefix = 'dummy_test' ERP5TypeTestLoader._testMethodPrefix = 'dummy_test'
PortalTestCase.setUp = dummy_setUp PortalTestCase.setUp = dummy_setUp
PortalTestCase.tearDown = dummy_tearDown PortalTestCase.tearDown = dummy_tearDown
elif debug: if debug:
# Hack the profiler to run only specified test methods,
# and wrap results when running in debug mode.
class DebugTextTestRunner(TestRunner): class DebugTextTestRunner(TestRunner):
def _makeResult(self): def _makeResult(self):
result = super(DebugTextTestRunner, self)._makeResult() result = super(DebugTextTestRunner, self)._makeResult()
......
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