diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-06-03 06:37:27 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-06-03 06:37:27 -0400 |
commit | 54c7e6aa663fc83e63e44d3b407fe55584ac7fdc (patch) | |
tree | 4bb65194736a1db97554fc7b02756e9f2ccfc03b /tests/test_api.py | |
parent | ad022ede25c3a9e995282528e97b91309fa7d279 (diff) | |
download | python-coveragepy-54c7e6aa663fc83e63e44d3b407fe55584ac7fdc.tar.gz |
Fix the new FnmatchMatcher for >100 patterns
Diffstat (limited to 'tests/test_api.py')
-rw-r--r-- | tests/test_api.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index c1e9294..31bfc57 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -221,7 +221,7 @@ class ApiTest(CoverageTest): self.assertEqual(cov.get_exclude_list(), ["foo"]) cov.exclude("bar") self.assertEqual(cov.get_exclude_list(), ["foo", "bar"]) - self.assertEqual(cov._exclude_regex('exclude'), "(foo)|(bar)") + self.assertEqual(cov._exclude_regex('exclude'), "(?:foo)|(?:bar)") cov.clear_exclude() self.assertEqual(cov.get_exclude_list(), []) @@ -233,7 +233,9 @@ class ApiTest(CoverageTest): self.assertEqual(cov.get_exclude_list(which='partial'), ["foo"]) cov.exclude("bar", which='partial') self.assertEqual(cov.get_exclude_list(which='partial'), ["foo", "bar"]) - self.assertEqual(cov._exclude_regex(which='partial'), "(foo)|(bar)") + self.assertEqual( + cov._exclude_regex(which='partial'), "(?:foo)|(?:bar)" + ) cov.clear_exclude(which='partial') self.assertEqual(cov.get_exclude_list(which='partial'), []) |