Skip to content

Commit 5cf44f8

Browse files
committed
TST: use enum for signal values
1 parent 4d6568c commit 5cf44f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_backends_interactive.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,11 @@ def test_cross_Qt_imports():
357357
except subprocess.CalledProcessError as ex:
358358
# if segfault, carry on. We do try to warn the user they
359359
# are doing something that we do not expect to work
360-
if ex.returncode == -11:
360+
if ex.returncode == -signal.SIGSEGV:
361361
continue
362362
# We got the abort signal which is likely because the Qt5 /
363363
# Qt6 cross import is unhappy, carry on.
364-
elif ex.returncode == -6:
364+
elif ex.returncode == -signal.SIGABRT:
365365
continue
366366
raise
367367

0 commit comments

Comments
 (0)