Skip to content

Commit 379f303

Browse files
committed
Filter test_gdb if gdb program is not found
1 parent 8aa0d9e commit 379f303

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Lib/test/libregrtest/skipped.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,4 +284,8 @@ def expected_to_be_skipped(test_name):
284284
# need perf trampoline profiling
285285
return not support.supports_perf_trampoline_profiling()
286286

287+
if package == 'test_gdb':
288+
import shutil
289+
return not shutil.which('gdb')
290+
287291
return False

0 commit comments

Comments
 (0)