mirror of
https://github.com/fedora-python/tox-current-env.git
synced 2024-12-24 09:06:15 +01:00
Properly test for our options in tox_runenvreport()
The tests were failing with "no module named pip" on Pythons without globally available pip.
This commit is contained in:
parent
d0b0c443ac
commit
4282332967
@ -239,7 +239,7 @@ def tox_runenvreport(venv, action):
|
||||
"""Prevent using pip to display installed packages,
|
||||
use importlib.metadata instead, but fallback to default without our flags."""
|
||||
option = venv.envconfig.config.option
|
||||
if not (option.current_env or option.print_deps_only):
|
||||
if not (option.current_env or option.print_deps_to or option.print_extras_to):
|
||||
return None
|
||||
return (
|
||||
"{}=={}".format(d.metadata.get("name"), d.version)
|
||||
|
Loading…
Reference in New Issue
Block a user