File: use-python3-test-nonsense-gdb-binary.patch

package info (click to toggle)
numba 0.61.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,464 kB
  • sloc: python: 211,558; ansic: 15,233; cpp: 6,544; javascript: 424; sh: 322; makefile: 173
file content (17 lines) | stat: -rw-r--r-- 777 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Diane Trout <diane@ghic.org>
Description: By default Debian doesn't have a python executable installed
 use the default python3 name instead.
Forwarded: no (This is more to comply with our environment, than a general
 upstream issue)

--- a/numba/tests/test_cli.py
+++ b/numba/tests/test_cli.py
@@ -267,7 +267,7 @@
     def test_nonsense_gdb_binary(self):
         # Tests that a nonsense binary specified as gdb it picked up ok
         env = os.environ.copy()
-        env['NUMBA_GDB_BINARY'] = 'python' # 'python' isn't gdb!
+        env['NUMBA_GDB_BINARY'] = sys.executable # 'python' isn't gdb!
         cmdline = [sys.executable, "-m", "numba", "-g"]
         stdout, stderr = run_cmd(cmdline, env=env)
         self.assertIn("Testing gdb binary failed", stdout)