summaryrefslogtreecommitdiff
path: root/tests/test_files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-06-07 12:01:11 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-06-07 12:01:11 -0400
commit7092aa5e54c2c388960f223aabded527f3ccc324 (patch)
tree98f213d0a6cbb20ef0f6db3303023327b9217d45 /tests/test_files.py
parent2d647923dcb92a1f6237c4c20d9e23684021eba6 (diff)
downloadpython-coveragepy-git-7092aa5e54c2c388960f223aabded527f3ccc324.tar.gz
Tweak up the last merge
Diffstat (limited to 'tests/test_files.py')
-rw-r--r--tests/test_files.py22
1 files changed, 14 insertions, 8 deletions
diff --git a/tests/test_files.py b/tests/test_files.py
index 85c7048b..cd571e08 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -13,14 +13,6 @@ from coverage import env
from tests.coveragetest import CoverageTest
-if env.WINDOWS:
- class IncompleteWindowsTest(CoverageTest):
- run_in_temp_dir = False
-
- def test_actual_path(self):
- self.assertEquals(actual_path(r'c:\Windows'), actual_path(r'C:\wINDOWS'))
-
-
class FileLocatorTest(CoverageTest):
"""Tests of `FileLocator`."""
@@ -257,3 +249,17 @@ class FindPythonFilesTest(CoverageTest):
"sub/ssub/__init__.py", "sub/ssub/s.py",
"sub/windows.pyw",
])
+
+
+class WindowsFileTest(CoverageTest):
+ """Windows-specific tests of file name handling."""
+
+ run_in_temp_dir = False
+
+ def setUp(self):
+ if not env.WINDOWS:
+ self.skip("Only need to run Windows tests on Windows.")
+ super(WindowsFileTest, self).setUp()
+
+ def test_actual_path(self):
+ self.assertEquals(actual_path(r'c:\Windows'), actual_path(r'C:\wINDOWS'))