Skip to content

Commit 85845ec

Browse files
committed
Remove trailing whitespace; did not expect this would matter on a blank line.
1 parent 5ab1ac0 commit 85845ec

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

coverage/sqldata.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -617,29 +617,29 @@ def touch_files(self, filenames: Iterable[str], plugin_name: Optional[str] = Non
617617

618618
def purge_files(self, filenames, context=None):
619619
"""Purge any existing coverage data for the given `filenames`.
620-
620+
621621
If `context` is given, purge only data associated with that measurement context.
622622
"""
623-
623+
624624
if self._debug.should("dataop"):
625625
self._debug.write(f"Purging {filenames!r} for context {context}")
626626
self._start_using()
627627
with self._connect() as con:
628-
628+
629629
if context is not None:
630630
context_id = self._context_id(context)
631631
if context_id is None:
632632
raise DataError("Unknown context {context}")
633633
else:
634634
context_id = None
635-
635+
636636
if self._has_lines:
637637
table = 'line_bits'
638638
elif self._has_arcs:
639639
table = 'arcs'
640640
else:
641641
return
642-
642+
643643
for filename in filenames:
644644
file_id = self._file_id(filename, add=False)
645645
if file_id is None:

tests/test_api.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ def test_run_debug_sys(self) -> None:
755755
assert cast(str, d['data_file']).endswith(".coverage")
756756

757757
def test_purge_filenames(self) -> None:
758-
758+
759759
fn1 = self.make_file("mymain.py", """\
760760
import mymod
761761
a = 1
@@ -771,7 +771,7 @@ def test_purge_filenames(self) -> None:
771771
self.start_import_stop(cov, "mymain")
772772

773773
data = cov.get_data()
774-
774+
775775
# Initial measurement was for two files
776776
assert len(data.measured_files()) == 2
777777
assert [1, 2] == sorted_lines(data, fn1)
@@ -788,9 +788,9 @@ def test_purge_filenames(self) -> None:
788788
assert len(data.measured_files()) == 0
789789
assert [] == sorted_lines(data, fn1)
790790
assert [] == sorted_lines(data, fn2)
791-
791+
792792
def test_purge_filenames_context(self) -> None:
793-
793+
794794
fn1 = self.make_file("mymain.py", """\
795795
import mymod
796796
a = 1
@@ -804,7 +804,7 @@ def test_purge_filenames_context(self) -> None:
804804

805805
def dummy_function():
806806
unused = 42
807-
807+
808808
# Start/stop since otherwise cantext
809809
cov = coverage.Coverage()
810810
cov.start()
@@ -815,7 +815,7 @@ def dummy_function():
815815
self.start_import_stop(cov, "mymain")
816816

817817
data = cov.get_data()
818-
818+
819819
# Initial measurement was for three files and two contexts
820820
assert len(data.measured_files()) == 3
821821
assert [1, 2] == sorted_lines(data, fn1)
@@ -851,15 +851,15 @@ def dummy_function():
851851
assert [1,] == sorted_lines(data, fn2)
852852
assert len(sorted_lines(data, __file__)) == 0
853853
assert len(data.measured_contexts()) == 2
854-
854+
855855
# Remove last file specifying correct context
856856
data.purge_files([fn2], 'testcontext')
857857
assert len(data.measured_files()) == 0
858858
assert [] == sorted_lines(data, fn1)
859859
assert [] == sorted_lines(data, fn2)
860860
assert len(sorted_lines(data, __file__)) == 0
861861
assert len(data.measured_contexts()) == 2
862-
862+
863863

864864
class CurrentInstanceTest(CoverageTest):
865865
"""Tests of Coverage.current()."""

0 commit comments

Comments
 (0)