aboutsummaryrefslogtreecommitdiffstats
path: root/test/full_coverage_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/full_coverage_plugin.py')
-rw-r--r--test/full_coverage_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/full_coverage_plugin.py b/test/full_coverage_plugin.py
index f99dc7ab..ab1206ea 100644
--- a/test/full_coverage_plugin.py
+++ b/test/full_coverage_plugin.py
@@ -31,8 +31,8 @@ def pytest_configure(config):
global no_full_cov
enable_coverage = (
- len(config.getoption('file_or_dir')) == 0 and
- len(config.getoption('full_cov')) > 0 and
+ config.getoption('file_or_dir') and len(config.getoption('file_or_dir')) == 0 and
+ config.getoption('full_cov') and len(config.getoption('full_cov')) > 0 and
config.pluginmanager.getplugin("_cov") is not None and
config.pluginmanager.getplugin("_cov").cov_controller is not None and
config.pluginmanager.getplugin("_cov").cov_controller.cov is not None