diff options
author | Vladimir Matveev <v2matveev@outlook.com> | 2019-01-08 09:58:25 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-01-08 09:58:25 (GMT) |
commit | c24c6c2c9357da99961bf257078240529181daf3 (patch) | |
tree | 552b9c627f21770d971d26f0d7d38e8a1b58ea02 /Lib/test/test_posix.py | |
parent | e61cc481e02b758c8d8289163102c236d0658a55 (diff) | |
download | cpython-c24c6c2c9357da99961bf257078240529181daf3.zip cpython-c24c6c2c9357da99961bf257078240529181daf3.tar.gz cpython-c24c6c2c9357da99961bf257078240529181daf3.tar.bz2 |
bpo-35568: add 'raise_signal' function (GH-11335)
As in title, expose C `raise` function as `raise_function` in `signal` module. Also drop existing `raise_signal` in `_testcapi` module and replace all usages with new function.
https://bugs.python.org/issue35568
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r-- | Lib/test/test_posix.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 86c04b9..d7e512c 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -1596,8 +1596,8 @@ class TestPosixSpawn(unittest.TestCase): 'need signal.pthread_sigmask()') def test_setsigmask(self): code = textwrap.dedent("""\ - import _testcapi, signal - _testcapi.raise_signal(signal.SIGUSR1)""") + import signal + signal.raise_signal(signal.SIGUSR1)""") pid = posix.posix_spawn( sys.executable, @@ -1627,8 +1627,8 @@ class TestPosixSpawn(unittest.TestCase): def test_setsigdef(self): original_handler = signal.signal(signal.SIGUSR1, signal.SIG_IGN) code = textwrap.dedent("""\ - import _testcapi, signal - _testcapi.raise_signal(signal.SIGUSR1)""") + import signal + signal.raise_signal(signal.SIGUSR1)""") try: pid = posix.posix_spawn( sys.executable, |