We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8593bb1 commit 4eeb475Copy full SHA for 4eeb475
1 file changed
_pytest/unittest.py
@@ -150,7 +150,12 @@ def stopTest(self, testcase):
150
pass
151
152
def runtest(self):
153
- self._testcase(result=self)
+ if self.config.pluginmanager.get_plugin("pdbinvoke") is None:
154
+ self._testcase(result=self)
155
+ else:
156
+ # disables tearDown and cleanups for post mortem debugging
157
+ self._testcase.debug()
158
+
159
160
def _prunetraceback(self, excinfo):
161
pytest.Function._prunetraceback(self, excinfo)
0 commit comments