Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 6cc5205

Browse files
author
Matthias Koeppe
committed
src/sage/doctest/control.py: When invoking gdb, use sys.executable
1 parent a9a2fde commit 6cc5205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/doctest/control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ def run_val_gdb(self, testing=False):
12031203

12041204
with importlib.resources.path(__package__, 'sage-gdb-commands') as sage_gdb_commands:
12051205
if opt.gdb:
1206-
cmd = f'''exec gdb -x {shlex.quote(str(sage_gdb_commands))} --args '''
1206+
cmd = f'''exec gdb -x {shlex.quote(str(sage_gdb_commands))} --args {sys.executable} '''
12071207
flags = ""
12081208
if opt.logfile:
12091209
sage_cmd += f" --logfile {shlex.quote(opt.logfile)}"

0 commit comments

Comments
 (0)