Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit edcfeba

Browse files
committed
Merged revisions 80144 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent a03e534 commit edcfeba

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

Lib/test/test_signal.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ def run_test(self):
139139
self.fail("pause returned of its own accord, and the signal"
140140
" didn't arrive after another second.")
141141

142+
# Issue 3864, unknown if this affects earlier versions of freebsd also
143+
@unittest.skipIf(sys.platform=='freebsd6',
144+
'inter process signals not reliable (do not mix well with threading) '
145+
'on freebsd6')
142146
def test_main(self):
143147
# This function spawns a child process to insulate the main
144148
# test-running process from all the signals. It then
@@ -355,6 +359,9 @@ def test_itimer_real(self):
355359

356360
self.assertEqual(self.hndl_called, True)
357361

362+
# Issue 3864, unknown if this affects earlier versions of freebsd also
363+
@unittest.skipIf(sys.platform=='freebsd6',
364+
'itimer not reliable (does not mix well with threading) on freebsd6')
358365
def test_itimer_virtual(self):
359366
self.itimer = signal.ITIMER_VIRTUAL
360367
signal.signal(signal.SIGVTALRM, self.sig_vtalrm)
@@ -376,6 +383,9 @@ def test_itimer_virtual(self):
376383
# and the handler should have been called
377384
self.assertEquals(self.hndl_called, True)
378385

386+
# Issue 3864, unknown if this affects earlier versions of freebsd also
387+
@unittest.skipIf(sys.platform=='freebsd6',
388+
'itimer not reliable (does not mix well with threading) on freebsd6')
379389
def test_itimer_prof(self):
380390
self.itimer = signal.ITIMER_PROF
381391
signal.signal(signal.SIGPROF, self.sig_prof)

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,9 @@ Documentation
10961096
Tests
10971097
-----
10981098

1099+
- Issue #3864: Skip three test_signal tests on freebsd6 because they fail
1100+
if any thread was previously started, most likely due to a platform bug.
1101+
10991102
- Issue #8193: Fix test_zlib failure with zlib 1.2.4.
11001103

11011104
- Issue #8248: Add some tests for the bool type. Patch by Gregory Nofi.

0 commit comments

Comments
 (0)