diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-04-21 01:59:28 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-04-21 01:59:28 (GMT) |
commit | 44546f89a829d757642d0ede825cafe265224422 (patch) | |
tree | 9cdf82b1a4ebcdd08a2802e8d38149ff3a0d66e4 /Lib | |
parent | e8ab2220c0003bd3b60743a51f14bc0aa50776c3 (diff) | |
download | cpython-44546f89a829d757642d0ede825cafe265224422.zip cpython-44546f89a829d757642d0ede825cafe265224422.tar.gz cpython-44546f89a829d757642d0ede825cafe265224422.tar.bz2 |
Merged revisions 80296 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r80296 | r.david.murray | 2010-04-20 21:51:57 -0400 (Tue, 20 Apr 2010) | 14 lines
Merged revisions 80144 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80144 | r.david.murray | 2010-04-17 01:26:26 -0400 (Sat, 17 Apr 2010) | 8 lines
Issue #3864: Skip three test_signal tests on freebsd6 due to platform bug.
Two itimer tests and an interprocess signal test fail on FreeBSD 6 if
any test that starts a thread runs before test_signal. Since FreeBSD7
does not show this behavior, the bug is most likely a platform bug,
so this patch just skips the failing tests on freebsd6.
........
................
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_signal.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index 6f4a7bf..a7c030e 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -139,6 +139,10 @@ class InterProcessSignalTests(unittest.TestCase): self.fail("pause returned of its own accord, and the signal" " didn't arrive after another second.") + # 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_main(self): # This function spawns a child process to insulate the main # test-running process from all the signals. It then @@ -355,6 +359,9 @@ 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=='freebsd6', + 'itimer not reliable (does not mix well with threading) on freebsd6') def test_itimer_virtual(self): self.itimer = signal.ITIMER_VIRTUAL signal.signal(signal.SIGVTALRM, self.sig_vtalrm) @@ -376,6 +383,9 @@ class ItimerTest(unittest.TestCase): # and the handler should have been called self.assertEquals(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) |