1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
Description: Use Debian packages for tests rather than local imports
Forwarded: not-needed
Origin: vendor
Author: Julian Gilbey <jdg@debian.org>
Last-Update: 2024-11-24
--- a/runtests.py
+++ b/runtests.py
@@ -31,15 +31,11 @@
def run_pytest(run_slow=False, extra_args=None, remoteclient=False):
"""Run pytest tests for Spyder."""
- # Be sure to ignore subrepos and remoteclient plugin
- pytest_args = ['-vv', '-rw', '--durations=10', '--ignore=./external-deps',
+ pytest_args = ['-vv', '-rw', '--durations=10',
'-W ignore::UserWarning', '--timeout=120',
'--timeout_method=thread']
if CI:
- # Show coverage
- pytest_args += ['--cov=spyder', '--no-cov-on-fail', '--cov-report=xml']
-
# To display nice tests resume in Azure's web page
if os.environ.get('AZURE', None) is not None:
pytest_args += ['--cache-clear', '--junitxml=result.xml']
--- a/spyder/utils/tests/test_programs.py
+++ b/spyder/utils/tests/test_programs.py
@@ -31,14 +31,10 @@
VALID_W_INTERPRETER = os.path.join(python_dir, 'pythonw.exe')
INVALID_INTERPRETER = os.path.join(python_dir, 'Scripts', 'ipython.exe')
else:
- if sys.platform.startswith('linux'):
- home_dir = '/usr/share/miniconda/'
- else:
- home_dir = "/Users/runner/miniconda3"
-
- VALID_INTERPRETER = os.path.join(home_dir, 'bin', 'python')
+ home_dir = '/usr'
+ VALID_INTERPRETER = os.path.join(home_dir, 'bin', 'python3')
VALID_W_INTERPRETER = os.path.join(home_dir, 'bin', 'pythonw')
- INVALID_INTERPRETER = os.path.join(home_dir, 'bin', 'ipython')
+ INVALID_INTERPRETER = os.path.join(home_dir, 'bin', 'ipython3')
# =============================================================================
|