summaryrefslogtreecommitdiff
path: root/tests/test_files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-11-07 17:41:22 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-11-07 17:41:22 -0500
commit2a2293cafb6b322eb3329b5a7abd98435c56f361 (patch)
tree46bd827dbca10f809d069fe6bce3b402dad01d95 /tests/test_files.py
parent354245e8b6e8ada42a1a88c668596b5c6d3e9539 (diff)
downloadpython-coveragepy-git-2a2293cafb6b322eb3329b5a7abd98435c56f361.tar.gz
refactor(test): use the expected name for initializing tests.
Originally I used setup_test because something went wrong when I used setUp. I wrote https://github.com/pytest-dev/pytest/issues/8424 about it. There they say to use `-p no:nose` to disable nose interpretation. But now I simply went back to setUp, and all seems well? Not sure what changed, but using the expected name is better.
Diffstat (limited to 'tests/test_files.py')
-rw-r--r--tests/test_files.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_files.py b/tests/test_files.py
index 9c92fd76..de0dbbd5 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -144,8 +144,8 @@ def test_fnmatches_to_regex(patterns, case_insensitive, partial, matches, nomatc
class MatcherTest(CoverageTest):
"""Tests of file matchers."""
- def setup_test(self):
- super().setup_test()
+ def setUp(self):
+ super().setUp()
files.set_relative_directory()
def assertMatches(self, matcher, filepath, matches):