Skip to content

Commit

Permalink
Add a failing test for #708
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Sep 24, 2018
1 parent 2133b28 commit 7c660b7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,21 @@ def test_combining_twice(self):
self.assertEqual(statements, [1, 2])
self.assertEqual(missing, [1, 2])

def test_combining_with_a_used_coverage(self):
# Can you use a coverage object to run one shard of a parallel suite,
# and then also combine the data?
self.make_code1_code2()
cov = coverage.Coverage(data_suffix=True)
self.start_import_stop(cov, "code1")
cov.save()

cov = coverage.Coverage(data_suffix=True)
self.start_import_stop(cov, "code2")
cov.save()

cov.combine()
self.check_code1_code2(cov)

def test_warnings(self):
self.make_file("hello.py", """\
import sys, os
Expand Down

0 comments on commit 7c660b7

Please sign in to comment.