kadler / cpython

The Python programming language
https://www.python.org/
Other
2 stars 2 forks source link

Test failures in test_signal #20

Open kadler opened 4 years ago

kadler commented 4 years ago
======================================================================
ERROR: test_itimer_prof (test.test_signal.ItimerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_signal.py", line 754, in test_itimer_prof
    self.itimer = signal.ITIMER_PROF
AttributeError: module 'signal' has no attribute 'ITIMER_PROF'

======================================================================
ERROR: test_itimer_virtual (test.test_signal.ItimerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_signal.py", line 734, in test_itimer_virtual
    self.itimer = signal.ITIMER_VIRTUAL
AttributeError: module 'signal' has no attribute 'ITIMER_VIRTUAL'

======================================================================
FAIL: test_keyboard_interrupt_exit_code (test.test_signal.PosixTests)
KeyboardInterrupt triggers exit via SIGINT.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_signal.py", line 89, in test_keyboard_interrupt_exit_code
    self.assertIn(b"KeyboardInterrupt", process.stderr)
AssertionError: b'KeyboardInterrupt' not found in b''

======================================================================
FAIL: test_sigint (test.test_signal.RaiseSignalTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_signal.py", line 1250, in test_sigint
    signal.raise_signal(signal.SIGINT)
AssertionError: KeyboardInterrupt not raised

ITIMER_PROF and ITIMER_VIRTUAL are not supported by PASE so they'll need to be disabled. :(

Not sure what's up with the KeyBoardInterrupt tests.