|
23 | 23 | import coverage |
24 | 24 | from coverage import Coverage, env |
25 | 25 | from coverage.data import line_counts, sorted_lines |
26 | | -from coverage.exceptions import ConfigError, CoverageException, DataError, NoDataError, NoSource |
| 26 | +from coverage.exceptions import ConfigError, CoverageException, NoDataError, NoSource |
27 | 27 | from coverage.files import abs_file, relative_filename |
28 | 28 | from coverage.misc import import_local_file |
29 | 29 | from coverage.types import FilePathClasses, FilePathType, TCovKwargs |
@@ -355,17 +355,6 @@ def test_completely_zero_reporting(self) -> None: |
355 | 355 | last = self.last_line_squeezed(self.stdout()) |
356 | 356 | assert "TOTAL 1 1 0%" == last |
357 | 357 |
|
358 | | - def test_cov4_data_file(self) -> None: |
359 | | - cov4_data = ( |
360 | | - "!coverage.py: This is a private format, don't read it directly!" |
361 | | - + '{"lines":{"/somewhere/not/really.py":[1,5,2,3]}}' |
362 | | - ) |
363 | | - self.make_file(".coverage", cov4_data) |
364 | | - cov = coverage.Coverage() |
365 | | - with pytest.raises(DataError, match="Looks like a coverage 4.x data file"): |
366 | | - cov.load() |
367 | | - cov.erase() |
368 | | - |
369 | 358 | def make_code1_code2(self) -> None: |
370 | 359 | """Create the code1.py and code2.py files.""" |
371 | 360 | self.make_file( |
|
0 commit comments