diff options
author | Daniel Hahler <git@thequod.de> | 2019-10-18 18:26:03 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-11-10 00:21:51 +0100 |
commit | 04f27d4eb469fb9c76fd2d100564a0f7d30028df (patch) | |
tree | 278d791fa163ca839b36dba5829419b22f2181c8 /doc/en/unittest.rst | |
parent | 710e3c40e0e613a06eef62f58b3f7db9761ee868 (diff) | |
download | pytest-04f27d4eb469fb9c76fd2d100564a0f7d30028df.tar.gz |
unittest: do not use TestCase.debug() with `--pdb`
Fixes https://github.com/pytest-dev/pytest/issues/5991
Fixes https://github.com/pytest-dev/pytest/issues/3823
Ref: https://github.com/pytest-dev/pytest-django/issues/772
Ref: https://github.com/pytest-dev/pytest/pull/1890
Ref: https://github.com/pytest-dev/pytest-django/pull/782
- inject wrapped testMethod
- adjust test_trial_error
- add test for `--trace` with unittests
Diffstat (limited to 'doc/en/unittest.rst')
-rw-r--r-- | doc/en/unittest.rst | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/doc/en/unittest.rst b/doc/en/unittest.rst index 0f6737c0d..cd7858190 100644 --- a/doc/en/unittest.rst +++ b/doc/en/unittest.rst @@ -240,17 +240,6 @@ was executed ahead of the ``test_method``. .. note:: - Running tests from ``unittest.TestCase`` subclasses with ``--pdb`` will - disable tearDown and cleanup methods for the case that an Exception - occurs. This allows proper post mortem debugging for all applications - which have significant logic in their tearDown machinery. However, - supporting this feature has the following side effect: If people - overwrite ``unittest.TestCase`` ``__call__`` or ``run``, they need to - to overwrite ``debug`` in the same way (this is also true for standard - unittest). - -.. note:: - Due to architectural differences between the two frameworks, setup and teardown for ``unittest``-based tests is performed during the ``call`` phase of testing instead of in ``pytest``'s standard ``setup`` and ``teardown`` |