From c0921466d3d235f10be333da1f9cf523f4e2e24c Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 6 Feb 2021 21:55:29 -0500 Subject: refactor: convert all skipping to pytest skips --- tests/test_files.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tests/test_files.py') 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') -- cgit v1.2.1