Skip to content

Commit

Permalink
Use NUMBA_DPPY_DEBUG for debugging GDB tests (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
PokhodenkoSA authored Oct 1, 2021
1 parent cb38b83 commit aa9636a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion numba_dppy/tests/test_debug_dppy_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import pytest

import numba_dppy
from numba_dppy import config

pexpect = pytest.importorskip("pexpect")

Expand All @@ -44,7 +45,8 @@ def spawn(self):
env["NUMBA_OPT"] = "0"

self.child = pexpect.spawn("gdb-oneapi -q python", env=env, encoding="utf-8")
# self.child.logfile = sys.stdout
if config.DEBUG:
self.child.logfile = sys.stdout

def setup_gdb(self):
self.child.expect("(gdb)", timeout=5)
Expand Down

0 comments on commit aa9636a

Please sign in to comment.