diff options
Diffstat (limited to 'tests/test_filereporter.py')
-rw-r--r-- | tests/test_filereporter.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/test_filereporter.py b/tests/test_filereporter.py index 59eafa11..91e47762 100644 --- a/tests/test_filereporter.py +++ b/tests/test_filereporter.py @@ -4,12 +4,11 @@ """Tests for FileReporters""" import os -import sys from coverage.plugin import FileReporter from coverage.python import PythonFileReporter -from tests.coveragetest import CoverageTest +from tests.coveragetest import CoverageTest, UsingModulesMixin # pylint: disable=import-error # Unable to import 'aa' (No module named aa) @@ -20,17 +19,11 @@ def native(filename): return filename.replace("/", os.sep) -class FileReporterTest(CoverageTest): +class FileReporterTest(UsingModulesMixin, CoverageTest): """Tests for FileReporter classes.""" run_in_temp_dir = False - def setUp(self): - super(FileReporterTest, self).setUp() - # Parent class saves and restores sys.path, we can just modify it. - testmods = self.nice_file(os.path.dirname(__file__), 'modules') - sys.path.append(testmods) - def test_filenames(self): acu = PythonFileReporter("aa/afile.py") bcu = PythonFileReporter("aa/bb/bfile.py") |