Skip to content

Commit e5aca37

Browse files
committed
Cleanup
1 parent 8d456ef commit e5aca37

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/core/IronPython.Modules/signal.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
using System.Runtime.InteropServices;
1313
using System.Runtime.Versioning;
1414

15-
using IronPython.Hosting;
1615
using IronPython.Runtime;
1716
using IronPython.Runtime.Exceptions;
1817
using IronPython.Runtime.Operations;

tests/suite/modules/system_related/test_signal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import signal
1212
import sys
1313

14-
from iptest import IronPythonTestCase, is_cli, is_windows, is_posix, is_osx, is_linux, run_test
14+
from iptest import IronPythonTestCase, is_cpython, is_windows, is_posix, is_osx, is_linux, run_test
1515

1616
if is_linux:
1717
SIG_codes = {'SIGABRT': 6, 'SIGALRM': 14, 'SIGBUS': 7, 'SIGCHLD': 17, 'SIGCLD': 17, 'SIGCONT': 18, 'SIGFPE': 8, 'SIGHUP': 1, 'SIGILL': 4, 'SIGINT': 2, 'SIGIO': 29, 'SIGIOT': 6, 'SIGKILL': 9, 'SIGPIPE': 13, 'SIGPOLL': 29, 'SIGPROF': 27, 'SIGPWR': 30, 'SIGQUIT': 3, 'SIGRTMAX': 64, 'SIGRTMIN': 34, 'SIGSEGV': 11, 'SIGSTKFLT': 16, 'SIGSTOP': 19, 'SIGSYS': 31, 'SIGTERM': 15, 'SIGTRAP': 5, 'SIGTSTP': 20, 'SIGTTIN': 21, 'SIGTTOU': 22, 'SIGURG': 23, 'SIGUSR1': 10, 'SIGUSR2': 12, 'SIGVTALRM': 26, 'SIGWINCH': 28, 'SIGXCPU': 24, 'SIGXFSZ': 25}
@@ -62,7 +62,7 @@ def test_module_constants(self):
6262

6363
# when run with CPython, this verifies that SIG_codes are correct and matching CPython
6464
for sig in SIG_codes:
65-
if sys.version_info < (3, 11) and not is_cli and sig == 'SIGSTKFLT':
65+
if sys.version_info < (3, 11) and is_cpython and sig == 'SIGSTKFLT':
6666
# SIGSTKFLT is not defined in CPython < 3.11
6767
continue
6868
self.assertEqual(getattr(signal, sig), SIG_codes[sig])

0 commit comments

Comments
 (0)