Skip to content

Commit e712adc

Browse files
authored
Merge pull request pytest-dev#4072 from pecey/tmp/issue-4064
Fixes pytest-dev#4064 by correcting the documentation for unit-tests
2 parents 3f03625 + f9ac608 commit e712adc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

changelog/4064.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
According to unittest.rst, setUpModule and tearDownModule were not implemented, but it turns out they are. So updated the documentation for unittest.

doc/en/unittest.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@ Almost all ``unittest`` features are supported:
2222

2323
* ``@unittest.skip`` style decorators;
2424
* ``setUp/tearDown``;
25-
* ``setUpClass/tearDownClass()``;
25+
* ``setUpClass/tearDownClass``;
26+
* ``setUpModule/tearDownModule``;
2627

2728
.. _`load_tests protocol`: https://docs.python.org/3/library/unittest.html#load-tests-protocol
28-
.. _`setUpModule/tearDownModule`: https://docs.python.org/3/library/unittest.html#setupmodule-and-teardownmodule
2929
.. _`subtests`: https://docs.python.org/3/library/unittest.html#distinguishing-test-iterations-using-subtests
3030

3131
Up to this point pytest does not have support for the following features:
3232

3333
* `load_tests protocol`_;
34-
* `setUpModule/tearDownModule`_;
3534
* `subtests`_;
3635

3736
Benefits out of the box

0 commit comments

Comments
 (0)