diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index 9bc9f8c6b2a..01b7050d9f9 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -140,6 +140,11 @@ class InterProcessSignalTests(unittest.TestCase): " didn't arrive after another second.") def test_main(self): + # Issue 3864, unknown if this affects earlier versions of freebsd also + if sys.platform=='freebsd6' and test_support.verbose: + sys.stderr.write('skipping -- inter process signals not reliable ' + '(do not mix well with threading) on freebsd6\n') + return # This function spawns a child process to insulate the main # test-running process from all the signals. It then # communicates with that child process over a pipe and @@ -356,6 +361,11 @@ class ItimerTest(unittest.TestCase): self.assertEqual(self.hndl_called, True) def test_itimer_virtual(self): + # Issue 3864, unknown if this affects earlier versions of freebsd also + if sys.platform=='freebsd6' and test_support.verbose: + sys.stderr.write('skipping -- itimer not reliable ' + '(does not mix well with threading) on freebsd6\n') + return self.itimer = signal.ITIMER_VIRTUAL signal.signal(signal.SIGVTALRM, self.sig_vtalrm) signal.setitimer(self.itimer, 0.3, 0.2) @@ -377,6 +387,11 @@ class ItimerTest(unittest.TestCase): self.assertEquals(self.hndl_called, True) def test_itimer_prof(self): + # Issue 3864, unknown if this affects earlier versions of freebsd also + if sys.platform=='freebsd6' and test_support.verbose: + sys.stderr.write('skipping -- itimer not reliable ' + '(does not mix well with threading) on freebsd6\n') + return self.itimer = signal.ITIMER_PROF signal.signal(signal.SIGPROF, self.sig_prof) signal.setitimer(self.itimer, 0.2, 0.2) diff --git a/Misc/NEWS b/Misc/NEWS index bd4b807b2d1..549eaa42772 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -93,6 +93,9 @@ Build Tests ----- +- Issue #3864: Skip three test_signal tests on freebsd6 because they fail + if any thread was previously started, most likely due to a platform bug. + - Issue #8193: Fix test_zlib failure with zlib 1.2.4.