Skip to content

Commit 2bafa74

Browse files
Merge pull request #1942 from mbyt/better_doc_for_1890
better doc for #1890 based on #1932
2 parents 863b7d0 + 77d842c commit 2bafa74

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/en/unittest.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ the general ``pytest`` documentation for many more examples.
3838
Running tests from ``unittest.TestCase`` subclasses with ``--pdb`` will
3939
disable tearDown and cleanup methods for the case that an Exception
4040
occurs. This allows proper post mortem debugging for all applications
41-
which have significant logic in their tearDown machinery.
41+
which have significant logic in their tearDown machinery. However,
42+
supporting this feature has the following side effect: If people
43+
overwrite ``unittest.TestCase`` ``__call__`` or ``run``, they need to
44+
to overwrite ``debug`` in the same way (this is also true for standard
45+
unittest).
4246

4347
Mixing pytest fixtures into unittest.TestCase style tests
4448
-----------------------------------------------------------

0 commit comments

Comments
 (0)