File: Customize-tests-for-Debian.patch

package info (click to toggle)
spyder 6.0.5%2Bds-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,676 kB
  • sloc: python: 121,632; sh: 420; xml: 142; javascript: 131; cpp: 67; makefile: 20; ansic: 19; erlang: 15; lisp: 11; java: 5
file content (45 lines) | stat: -rw-r--r-- 1,792 bytes parent folder | download | duplicates (2)
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')
 
 
 # =============================================================================