diff --git a/.github/workflows/unix_impl.yml b/.github/workflows/unix_impl.yml index 56a3aa17bb..d152ada956 100644 --- a/.github/workflows/unix_impl.yml +++ b/.github/workflows/unix_impl.yml @@ -162,7 +162,7 @@ jobs: run: | export TEST_MAMBA_EXE=$(pwd)/build/micromamba/mamba unset CONDARC # Interferes with tests - python -m pytest micromamba/tests/test_install.py::TestInstall::test_no_python_pinning \ + python -m pytest micromamba/tests/ \ ${{ runner.debug == 'true' && '-v --capture=tee-sys' || '--exitfirst' }} verify_pkg_tests: diff --git a/.github/workflows/windows_impl.yml b/.github/workflows/windows_impl.yml index a5f0eac93b..f545d5e5bb 100644 --- a/.github/workflows/windows_impl.yml +++ b/.github/workflows/windows_impl.yml @@ -149,5 +149,5 @@ jobs: $env:TEST_MAMBA_EXE = Join-Path -Path $pwd -ChildPath 'local\bin\mamba.exe' $env:MAMBA_TEST_SHELL_TYPE='powershell' Remove-Item -Path "env:CONDARC" - python -m pytest micromamba/tests/test_install.py::TestInstall::test_no_python_pinning ` + python -m pytest micromamba/tests/ ` ${{ runner.debug == 'true' && '-v --capture=tee-sys' || '--exitfirst' }} diff --git a/libmamba/src/core/prefix_data.cpp b/libmamba/src/core/prefix_data.cpp index 5e70091856..81c8025148 100644 --- a/libmamba/src/core/prefix_data.cpp +++ b/libmamba/src/core/prefix_data.cpp @@ -227,7 +227,6 @@ namespace mamba { "PYTHONIOENCODING", "utf-8" }, { "NO_COLOR", "1" }, { "PIP_NO_COLOR", "1" }, - { "PIP_NO_PYTHON_VERSION_WARNING", "1" }, }; reproc::options run_options; run_options.env.extra = reproc::env{ env }; diff --git a/micromamba/tests/test_install.py b/micromamba/tests/test_install.py index 52916302eb..df1093d377 100644 --- a/micromamba/tests/test_install.py +++ b/micromamba/tests/test_install.py @@ -481,9 +481,7 @@ def test_channel_alias(self, alias, existing_cache): ) def test_no_python_pinning(self, existing_cache): helpers.install("python=3.9.19", no_dry_run=True) - res = helpers.install("setuptools=63.4.3", "--no-py-pin") - print("RES: ", res) - # res = helpers.install("setuptools=63.4.3", "--no-py-pin", "--json") + res = helpers.install("setuptools=63.4.3", "--no-py-pin", "--json") keys = {"success", "prefix", "actions", "dry_run"} assert keys.issubset(set(res.keys()))