From 7eaa7ea6d4cce9b3ac399012fd97547ed5edeac5 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Fri, 21 Jun 2024 01:33:05 +0200 Subject: [PATCH] adjust pytest invocation for python 2 --- scripts/internal/winmake.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/internal/winmake.py b/scripts/internal/winmake.py index 5a80ce90..01b1f201 100755 --- a/scripts/internal/winmake.py +++ b/scripts/internal/winmake.py @@ -29,9 +29,11 @@ APPVEYOR = bool(os.environ.get('APPVEYOR')) PYTHON = sys.executable if APPVEYOR else os.getenv('PYTHON', sys.executable) -PYTEST_ARGS = "-v --tb=native -o " GET_PIP_URL = "https://bootstrap.pypa.io/get-pip.py" PY3 = sys.version_info[0] >= 3 +PYTEST_ARGS = "-v --tb=native " +if PY3: + PYTEST_ARGS += "-o " HERE = os.path.abspath(os.path.dirname(__file__)) ROOT_DIR = os.path.realpath(os.path.join(HERE, "..", "..")) PYPY = '__pypy__' in sys.builtin_module_names