diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-06 21:55:29 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-06 21:57:26 -0500 |
commit | 2af7e87b26754fea68adfd1b8aa51052d987e60c (patch) | |
tree | 3d81d1e79bebd529240629b9cd43c4f0e273046b /tests/test_files.py | |
parent | e59da1bafafe4265188bb5c75c4e557dfbd47d90 (diff) | |
download | python-coveragepy-git-nedbat/better-combine-action.tar.gz |
refactor: convert all skipping to pytest skipsnedbat/better-combine-action
Diffstat (limited to 'tests/test_files.py')
-rw-r--r-- | tests/test_files.py | 6 |
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') |