summaryrefslogtreecommitdiff
path: root/tests/test_files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-02-06 21:55:29 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-02-07 17:24:44 -0500
commitc0921466d3d235f10be333da1f9cf523f4e2e24c (patch)
tree5e67f7e62db1048229a54e308885b935616b6e5a /tests/test_files.py
parent465dace54a3f3300c0a86b527a8f77d0475fc895 (diff)
downloadpython-coveragepy-git-c0921466d3d235f10be333da1f9cf523f4e2e24c.tar.gz
refactor: convert all skipping to pytest skips
Diffstat (limited to 'tests/test_files.py')
-rw-r--r--tests/test_files.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/test_files.py b/tests/test_files.py
index 6a9556ec..6040b889 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -396,15 +396,11 @@ class FindPythonFilesTest(CoverageTest):
])
+@pytest.mark.skipif(not env.WINDOWS, reason="Only need to run Windows tests on Windows.")
class WindowsFileTest(CoverageTest):
"""Windows-specific tests of file name handling."""
run_in_temp_dir = False
- def setUp(self):
- if not env.WINDOWS:
- self.skipTest("Only need to run Windows tests on Windows.")
- super(WindowsFileTest, self).setUp()
-
def test_actual_path(self):
assert actual_path(r'c:\Windows') == actual_path(r'C:\wINDOWS')