Skip to content

Commit

Permalink
venv_install_options: add missing clear_argv fixture
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lazka committed Jul 21, 2024
1 parent e1e9f61 commit cf47197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distutils/tests/test_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_command_packages_cmdline(self, clear_argv):
'distutils' not in Distribution.parse_config_files.__module__,
reason='Cannot test when virtualenv has monkey-patched Distribution',
)
def test_venv_install_options(self, tmp_path):
def test_venv_install_options(self, tmp_path, clear_argv):
sys.argv.append("install")
file = str(tmp_path / 'file')

Expand Down

0 comments on commit cf47197

Please sign in to comment.