We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9307f55 commit 745d8f2Copy full SHA for 745d8f2
tests/test_data.py
@@ -831,3 +831,15 @@ def test_combining_from_nonexistent_directories(self):
831
msg = "Couldn't combine from non-existent path 'xyzzy'"
832
with self.assertRaisesRegex(CoverageException, msg):
833
combine_parallel_data(covdata, data_paths=['xyzzy'])
834
+
835
+ def test_interleaved_erasing_bug716(self):
836
+ # pytest-cov could produce this scenario. #716
837
+ covdata1 = CoverageData()
838
+ covdata2 = CoverageData()
839
+ # this used to create the .coverage database file..
840
+ covdata2.set_context("")
841
+ # then this would erase it all..
842
+ covdata1.erase()
843
+ # then this would try to use tables that no longer exist.
844
+ # "no such table: meta"
845
+ covdata2.add_lines(LINES_1)
0 commit comments