minor: check bool before function call
This commit is contained in:
parent
560c055b09
commit
c1bde8e0a2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue