From 59cb5bfa140f496273ac1294d26394fccb999d7a Mon Sep 17 00:00:00 2001 From: Gil Forsyth Date: Wed, 26 Jul 2023 18:55:05 -0400 Subject: [PATCH] chore(virtualenv): pass no-rc in virtualenv test --- tests/test_tools.py | 1 + tests/test_virtualenv_activator.py | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/test_tools.py b/tests/test_tools.py index ca26a019c3..8318cbb2fe 100644 --- a/tests/test_tools.py +++ b/tests/test_tools.py @@ -8,6 +8,7 @@ from tempfile import TemporaryDirectory import pytest + from xonsh import __version__ from xonsh.lexer import Lexer from xonsh.platform import HAS_PYGMENTS, ON_WINDOWS, PYTHON_VERSION_INFO diff --git a/tests/test_virtualenv_activator.py b/tests/test_virtualenv_activator.py index 345e7969de..fb8d2c4c59 100644 --- a/tests/test_virtualenv_activator.py +++ b/tests/test_virtualenv_activator.py @@ -27,6 +27,7 @@ def test_xonsh_activator(tmp_path): sys.executable, "-m", "xonsh", + "--no-rc", "-c", "import shutil; shutil.which('python') or shutil.which('python3')", ] @@ -35,7 +36,14 @@ def test_xonsh_activator(tmp_path): # Activate venv_python = check_output( - [sys.executable, "-m", "xonsh", "-c", f"source {activate_path}; which python"] + [ + sys.executable, + "-m", + "xonsh", + "--no-rc", + "-c", + f"source {activate_path}; which python", + ] ).decode() assert Path(venv_python).parent == bin_path @@ -45,6 +53,7 @@ def test_xonsh_activator(tmp_path): sys.executable, "-m", "xonsh", + "--no-rc", "-c", f"source {activate_path}; deactivate; " "import shutil; shutil.which('python') or shutil.which('python3')",