@@ -62,8 +62,8 @@ def spawn(self):
62
62
env ["NUMBA_EXTEND_VARIABLE_LIFETIMES" ] = "1"
63
63
64
64
self .child = pexpect .spawn ("gdb-oneapi -q python" , env = env , encoding = "utf-8" )
65
- # if config.DEBUG:
66
- self .child .logfile = sys .stdout
65
+ if config .DEBUG :
66
+ self .child .logfile = sys .stdout
67
67
68
68
def setup_gdb (self ):
69
69
self .child .expect ("(gdb)" , timeout = 5 )
@@ -126,17 +126,13 @@ def script_path(script):
126
126
127
127
@pytest .fixture ()
128
128
def app (request ):
129
- # run_gdb = gdb()
130
- # yield run_gdb
131
- # run_gdb.teardown_gdb()
132
129
return gdb ()
133
130
134
131
135
132
def test_dummy ():
136
133
assert True
137
134
138
135
139
- @pytest .mark .xfail (raises = pexpect .TIMEOUT )
140
136
@pytest .mark .parametrize ("api" , ["numba" , "numba-dppy" ])
141
137
def test_breakpoint_row_number (app , api ):
142
138
app .breakpoint ("dppy_numba_basic.py:25" )
@@ -146,23 +142,23 @@ def test_breakpoint_row_number(app, api):
146
142
app .child .expect (r"25\s+param_c = param_a \+ 10" )
147
143
148
144
149
- # # commands/backtrace
150
- # @pytest.mark.xfail(raises=pexpect.TIMEOUT)
151
- # def test_backtrace(app):
152
- # app.breakpoint("simple_dppy_func.py:23")
153
- # app.run("simple_dppy_func.py")
145
+ # commands/backtrace
146
+ @pytest .mark .xfail (raises = pexpect .TIMEOUT , reasos = "CI fails" )
147
+ def test_backtrace (app ):
148
+ app .breakpoint ("simple_dppy_func.py:23" )
149
+ app .run ("simple_dppy_func.py" )
154
150
155
- # app.child.expect(r"Thread .* hit Breakpoint .* at simple_dppy_func.py:23")
156
- # app.child.expect(r"23\s+result = a_in_func \+ b_in_func")
151
+ app .child .expect (r"Thread .* hit Breakpoint .* at simple_dppy_func.py:23" )
152
+ app .child .expect (r"23\s+result = a_in_func \+ b_in_func" )
157
153
158
- # app.backtrace()
154
+ app .backtrace ()
159
155
160
- # app.child.expect(r"#0.*__main__::func_sum .* at simple_dppy_func.py:23")
161
- # app.child.expect(r"#1.*__main__::kernel_sum .* at simple_dppy_func.py:30")
156
+ app .child .expect (r"#0.*__main__::func_sum .* at simple_dppy_func.py:23" )
157
+ app .child .expect (r"#1.*__main__::kernel_sum .* at simple_dppy_func.py:30" )
162
158
163
159
164
160
# commands/break_conditional
165
- @pytest .mark .xfail (raises = pexpect .TIMEOUT )
161
+ @pytest .mark .xfail (raises = pexpect .TIMEOUT , reasos = "CI fails" )
166
162
def test_break_conditional (app ):
167
163
app .breakpoint ("simple_sum.py:24 if i == 1" )
168
164
app .run ("simple_sum.py" )
@@ -175,7 +171,7 @@ def test_break_conditional(app):
175
171
app .child .expect (r"\$1 = 1" )
176
172
177
173
178
- @pytest .mark .xfail (raises = pexpect .TIMEOUT )
174
+ @pytest .mark .xfail (raises = pexpect .TIMEOUT , reason = "Need a Numba with PR7177" )
179
175
def test_break_conditional_with_func_arg (app ):
180
176
app .breakpoint ("simple_dppy_func.py:23 if a_in_func == 3" )
181
177
app .run ("simple_dppy_func.py" )
@@ -189,7 +185,7 @@ def test_break_conditional_with_func_arg(app):
189
185
190
186
191
187
# commands/break_file_func
192
- @pytest .mark .xfail (raises = pexpect .TIMEOUT )
188
+ @pytest .mark .xfail (raises = pexpect .TIMEOUT , reasos = "CI fails" )
193
189
def test_break_file_function (app ):
194
190
app .breakpoint ("simple_sum.py:data_parallel_sum" )
195
191
app .run ("simple_sum.py" )
@@ -199,7 +195,7 @@ def test_break_file_function(app):
199
195
200
196
201
197
# commands/break_func
202
- @pytest .mark .xfail (raises = pexpect .TIMEOUT )
198
+ @pytest .mark .xfail (raises = pexpect .TIMEOUT , reasos = "CI fails" )
203
199
def test_break_function (app ):
204
200
app .breakpoint ("data_parallel_sum" )
205
201
app .run ("simple_sum.py" )
@@ -209,7 +205,7 @@ def test_break_function(app):
209
205
210
206
211
207
# commands/break_nested_func
212
- @pytest .mark .xfail (raises = pexpect .TIMEOUT )
208
+ @pytest .mark .xfail (raises = pexpect .TIMEOUT , reasos = "CI fails" )
213
209
def test_break_nested_function (app ):
214
210
app .breakpoint ("simple_dppy_func.py:func_sum" )
215
211
app .run ("simple_dppy_func.py" )
@@ -218,7 +214,7 @@ def test_break_nested_function(app):
218
214
app .child .expect (r"23\s+result = a_in_func \+ b_in_func" )
219
215
220
216
221
- @pytest .mark .xfail (raises = pexpect .TIMEOUT )
217
+ @pytest .mark .xfail (raises = pexpect .TIMEOUT , reason = "Need a Numba with PR7177" )
222
218
def test_info_args (app ):
223
219
app .breakpoint ("simple_dppy_func.py:29" )
224
220
app .run ("simple_dppy_func.py" )
@@ -243,7 +239,7 @@ def test_info_args(app):
243
239
244
240
245
241
# commands/info_func
246
- @pytest .mark .xfail (raises = pexpect .TIMEOUT )
242
+ @pytest .mark .xfail (raises = pexpect .TIMEOUT , reasos = "CI fails" )
247
243
def test_info_functions (app ):
248
244
app .breakpoint ("simple_sum.py:23" )
249
245
app .run ("simple_sum.py" )
@@ -253,11 +249,11 @@ def test_info_functions(app):
253
249
254
250
app .info_functions ("data_parallel_sum" )
255
251
256
- app .child .expect (r"21: \s+i8 \*+ __main__::data_parallel_sum\(.*\); " )
252
+ app .child .expect (r"22: \s+ .* __main__::data_parallel_sum\(.*\)" )
257
253
258
254
259
255
# commands/local_variables_0
260
- @pytest .mark .xfail (raises = pexpect .TIMEOUT )
256
+ @pytest .mark .xfail (raises = pexpect .TIMEOUT , reason = "Need a Numba with PR7177" )
261
257
def test_local_variables (app ):
262
258
app .breakpoint ("sum_local_vars.py:26" )
263
259
app .run ("sum_local_vars.py" )
@@ -294,7 +290,7 @@ def test_local_variables(app):
294
290
295
291
296
292
# commands/next
297
- @pytest .mark .xfail (raises = pexpect .TIMEOUT )
293
+ @pytest .mark .xfail (raises = pexpect .TIMEOUT , reasos = "CI fails" )
298
294
def test_next (app ):
299
295
app .breakpoint ("simple_dppy_func.py:30" )
300
296
app .run ("simple_dppy_func.py" )
@@ -311,7 +307,7 @@ def test_next(app):
311
307
312
308
313
309
# commands/step_dppy_func
314
- @pytest .mark .xfail (raises = pexpect .TIMEOUT )
310
+ @pytest .mark .xfail (raises = pexpect .TIMEOUT , reasos = "CI fails" )
315
311
def test_step (app ):
316
312
app .breakpoint ("simple_dppy_func.py:30" )
317
313
app .run ("simple_dppy_func.py" )
@@ -329,7 +325,7 @@ def test_step(app):
329
325
330
326
331
327
# commands/stepi
332
- @pytest .mark .xfail (raises = pexpect .TIMEOUT )
328
+ @pytest .mark .xfail (raises = pexpect .TIMEOUT , reasos = "CI fails" )
333
329
def test_stepi (app ):
334
330
app .breakpoint ("simple_dppy_func.py:30" )
335
331
app .run ("simple_dppy_func.py" )
0 commit comments