minor: check bool before function call

This commit is contained in:
Daniel Hahler 2018-11-09 01:37:51 +01:00
parent 560c055b09
commit c1bde8e0a2
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ def pytest_ignore_collect(path, config):
return True return True
allow_in_venv = config.getoption("collect_in_virtualenv") allow_in_venv = config.getoption("collect_in_virtualenv")
if _in_venv(path) and not allow_in_venv: if not allow_in_venv and _in_venv(path):
return True return True
return False return False