diff options
author | Michael Osipov <1983-01-06@gmx.net> | 2018-08-23 13:27:19 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2018-08-23 13:27:19 (GMT) |
commit | 48ce4897f8f8d91d948ecd1241ffab002df2be9e (patch) | |
tree | c07a85ee488b78bf02db2716d2ca7619e370171b /Lib/test | |
parent | 89487f51b8d6ba8a55f5de0ed689e46fefe73cc9 (diff) | |
download | cpython-48ce4897f8f8d91d948ecd1241ffab002df2be9e.zip cpython-48ce4897f8f8d91d948ecd1241ffab002df2be9e.tar.gz cpython-48ce4897f8f8d91d948ecd1241ffab002df2be9e.tar.bz2 |
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.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_signal.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index ecdffa6..d30a2d6 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -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): |