Skip to content

Commit f577bcb

Browse files
lazkajaraco
authored andcommitted
venv_install_options: add missing clear_argv fixture
Otherwise the test fails if arguments are passed to pytest, for example --no-cov: FAILED distutils/tests/test_dist.py::TestDistributionBehavior::test_venv_install_options - distutils.errors.DistutilsArgError: option --no-cov not recognized
1 parent 127371a commit f577bcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distutils/tests/test_dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_command_packages_cmdline(self, clear_argv):
8888
'distutils' not in Distribution.parse_config_files.__module__,
8989
reason='Cannot test when virtualenv has monkey-patched Distribution',
9090
)
91-
def test_venv_install_options(self, tmp_path):
91+
def test_venv_install_options(self, tmp_path, clear_argv):
9292
sys.argv.append("install")
9393
file = str(tmp_path / 'file')
9494

0 commit comments

Comments
 (0)