summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na92@gmail.com>2019-10-21 07:01:05 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2019-10-21 07:01:05 (GMT)
commit2eba6ad7bf3a5beeed54209a0107be8e1ac77767 (patch)
treec48beb385ccecbbaec8a892ea9972a795fda09c9 /Lib
parenta9ed91e6c2f0f1a9960b1382321918448228a801 (diff)
downloadcpython-2eba6ad7bf3a5beeed54209a0107be8e1ac77767.zip
cpython-2eba6ad7bf3a5beeed54209a0107be8e1ac77767.tar.gz
cpython-2eba6ad7bf3a5beeed54209a0107be8e1ac77767.tar.bz2
bpo-38493: Add os.CLD_KILLED and os.CLD_STOPPED. (GH-16821)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_posix.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index 9bdd284..17e4ded2 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -1226,6 +1226,16 @@ class PosixTester(unittest.TestCase):
finally:
posix.close(f)
+ @unittest.skipUnless(hasattr(signal, 'SIGCHLD'), 'CLD_XXXX be placed in si_code for a SIGCHLD signal')
+ @unittest.skipUnless(hasattr(os, 'waitid_result'), "test needs os.waitid_result")
+ def test_cld_xxxx_constants(self):
+ os.CLD_EXITED
+ os.CLD_KILLED
+ os.CLD_DUMPED
+ os.CLD_TRAPPED
+ os.CLD_STOPPED
+ os.CLD_CONTINUED
+
@unittest.skipUnless(os.symlink in os.supports_dir_fd, "test needs dir_fd support in os.symlink()")
def test_symlink_dir_fd(self):
f = posix.open(posix.getcwd(), posix.O_RDONLY)