summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-08-07 11:53:27 -0400
committerNed Batchelder <ned@nedbatchelder.com>2016-08-07 11:53:27 -0400
commitb3d626c3936d11c189b8e810ccb93ceaa019b156 (patch)
treed25f408e9400368eb36baaab82139a4c47594b22 /tests/test_cmdline.py
parent0e8b701b7ff23608d759188876ac3c9bf8669a47 (diff)
downloadpython-coveragepy-git-b3d626c3936d11c189b8e810ccb93ceaa019b156.tar.gz
Combining twice shouldn't lose data. #412, #516
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r--tests/test_cmdline.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index 1e72c4f4..3b982ebe 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -190,20 +190,20 @@ class CmdLineTest(BaseCmdLineTest):
# coverage combine with args
self.cmd_executes("combine datadir1", """\
.coverage()
- .combine(["datadir1"])
+ .combine(["datadir1"], strict=True)
.save()
""")
# coverage combine, appending
self.cmd_executes("combine --append datadir1", """\
.coverage()
.load()
- .combine(["datadir1"])
+ .combine(["datadir1"], strict=True)
.save()
""")
# coverage combine without args
self.cmd_executes("combine", """\
.coverage()
- .combine(None)
+ .combine(None, strict=True)
.save()
""")
@@ -211,12 +211,12 @@ class CmdLineTest(BaseCmdLineTest):
# https://bitbucket.org/ned/coveragepy/issues/385/coverage-combine-doesnt-work-with-rcfile
self.cmd_executes("combine --rcfile cov.ini", """\
.coverage(config_file='cov.ini')
- .combine(None)
+ .combine(None, strict=True)
.save()
""")
self.cmd_executes("combine --rcfile cov.ini data1 data2/more", """\
.coverage(config_file='cov.ini')
- .combine(["data1", "data2/more"])
+ .combine(["data1", "data2/more"], strict=True)
.save()
""")