bpo-34412: Make signal.strsignal() work on HP-UX (GH-8786)

Introduce a configure check for strsignal(3) which defines HAVE_STRSIGNAL for
signalmodule.c. Add some common signals on HP-UX. This change applies for
Windows and HP-UX.
This commit is contained in:
Michael Osipov 2018-08-23 15:27:19 +02:00 committed by Berker Peksag
parent 89487f51b8
commit 48ce4897f8
6 changed files with 27 additions and 4 deletions

View file

@ -60,6 +60,7 @@ class PosixTests(unittest.TestCase):
def test_strsignal(self):
self.assertIn("Interrupt", signal.strsignal(signal.SIGINT))
self.assertIn("Terminated", signal.strsignal(signal.SIGTERM))
self.assertIn("Hangup", signal.strsignal(signal.SIGHUP))
# Issue 3864, unknown if this affects earlier versions of freebsd also
def test_interprocess_signal(self):