summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_signal.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2018-01-22 17:32:50 (GMT)
committerGitHub <noreply@github.com>2018-01-22 17:32:50 (GMT)
commit13ff24582c99dfb439b1af7295b401415e7eb05b (patch)
tree6966d9e1247134dfee9db73b6b5a215bfa88baf4 /Lib/test/test_signal.py
parentb0a7a037b8fde56b62f886d5188bced7776777b4 (diff)
downloadcpython-13ff24582c99dfb439b1af7295b401415e7eb05b.zip
cpython-13ff24582c99dfb439b1af7295b401415e7eb05b.tar.gz
cpython-13ff24582c99dfb439b1af7295b401415e7eb05b.tar.bz2
bpo-32593: Drop FreeBSD 9 and older support (#5232)
Drop support of FreeBSD 9 and older.
Diffstat (limited to 'Lib/test/test_signal.py')
-rw-r--r--Lib/test/test_signal.py21
1 files changed, 1 insertions, 20 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index f17123c..48b7a39 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -56,9 +56,6 @@ class PosixTests(unittest.TestCase):
self.assertEqual(signal.getsignal(signal.SIGHUP), hup)
# Issue 3864, unknown if this affects earlier versions of freebsd also
- @unittest.skipIf(sys.platform=='freebsd6',
- 'inter process signals not reliable (do not mix well with threading) '
- 'on freebsd6')
def test_interprocess_signal(self):
dirname = os.path.dirname(__file__)
script = os.path.join(dirname, 'signalinterproctester.py')
@@ -651,7 +648,7 @@ class ItimerTest(unittest.TestCase):
self.assertEqual(self.hndl_called, True)
# Issue 3864, unknown if this affects earlier versions of freebsd also
- @unittest.skipIf(sys.platform in ('freebsd6', 'netbsd5'),
+ @unittest.skipIf(sys.platform in ('netbsd5',),
'itimer not reliable (does not mix well with threading) on some BSDs.')
def test_itimer_virtual(self):
self.itimer = signal.ITIMER_VIRTUAL
@@ -673,9 +670,6 @@ class ItimerTest(unittest.TestCase):
# and the handler should have been called
self.assertEqual(self.hndl_called, True)
- # Issue 3864, unknown if this affects earlier versions of freebsd also
- @unittest.skipIf(sys.platform=='freebsd6',
- 'itimer not reliable (does not mix well with threading) on freebsd6')
def test_itimer_prof(self):
self.itimer = signal.ITIMER_PROF
signal.signal(signal.SIGPROF, self.sig_prof)
@@ -762,16 +756,6 @@ class PendingSignalsTests(unittest.TestCase):
signal.signal(signum, handler)
- if sys.platform == 'freebsd6':
- # Issue #12392 and #12469: send a signal to the main thread
- # doesn't work before the creation of the first thread on
- # FreeBSD 6
- def noop():
- pass
- thread = threading.Thread(target=noop)
- thread.start()
- thread.join()
-
tid = threading.get_ident()
try:
signal.pthread_kill(tid, signum)
@@ -1010,9 +994,6 @@ class PendingSignalsTests(unittest.TestCase):
"""
assert_python_ok('-c', code)
- @unittest.skipIf(sys.platform == 'freebsd6',
- "issue #12392: send a signal to the main thread doesn't work "
- "before the creation of the first thread on FreeBSD 6")
@unittest.skipUnless(hasattr(signal, 'pthread_kill'),
'need signal.pthread_kill()')
def test_pthread_kill_main_thread(self):