From f577bcb5e15dde5411128939ce6336e1a20b9736 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 21 Jul 2024 13:22:12 +0200 Subject: [PATCH] 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 --- distutils/tests/test_dist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distutils/tests/test_dist.py b/distutils/tests/test_dist.py index 5bd206fe..4d78a198 100644 --- a/distutils/tests/test_dist.py +++ b/distutils/tests/test_dist.py @@ -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')