diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-10-23 14:03:17 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-10-30 15:45:47 -0400 |
commit | ec6205a8de972af6a09453235d02a7ebea6aea8e (patch) | |
tree | 2e55057dff55197a0466d8189c2bac6b2d03239c /tests/test_api.py | |
parent | b3a1d979f8625e4974eaa7211cdecb211ba90b50 (diff) | |
download | python-coveragepy-git-ec6205a8de972af6a09453235d02a7ebea6aea8e.tar.gz |
fix: use glob matching instead of fnmatch. #1407
I didn't understand that fnmatch considers the entire string to be a
filename, even if it has slashes in it. This led to incorrect matching.
Now we use our own implementation of glob matching to get the correct
behavior.
Diffstat (limited to 'tests/test_api.py')
-rw-r--r-- | tests/test_api.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index 375edcec..07bd07f3 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -71,7 +71,6 @@ class ApiTest(CoverageTest): assert missing == [1] def test_filenames(self): - self.make_file("mymain.py", """\ import mymod a = 1 |