diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-02-02 14:20:56 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-02-02 14:20:56 +0100 |
commit | 4f0b2bc4dec4eb3c4f0075bcebebeb126a5a6e88 (patch) | |
tree | 465ed866617e3d613078f1a682ff4eb5018c43f1 /test | |
parent | ae008ed80b870688e4e0fe5ff305dc40c17458b4 (diff) | |
download | mitmproxy-4f0b2bc4dec4eb3c4f0075bcebebeb126a5a6e88.tar.gz mitmproxy-4f0b2bc4dec4eb3c4f0075bcebebeb126a5a6e88.tar.bz2 mitmproxy-4f0b2bc4dec4eb3c4f0075bcebebeb126a5a6e88.zip |
adapt coverage checks
Diffstat (limited to 'test')
-rw-r--r-- | test/conftest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/conftest.py b/test/conftest.py index ef262944..c44aa461 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -116,7 +116,7 @@ def pytest_runtestloop(session): prefix = os.getcwd() excluded_files = [os.path.normpath(f) for f in pytest.config.option.no_full_cov] measured_files = [os.path.normpath(os.path.relpath(f, prefix)) for f in cov.get_data().measured_files()] - measured_files = [f for f in measured_files if f not in excluded_files] + measured_files = [f for f in measured_files if not any(f.startswith(excluded_f) for excluded_f in excluded_files)] for name in pytest.config.option.full_cov: files = [f for f in measured_files if f.startswith(os.path.normpath(name))] |