summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Krah <stefan@bytereef.org>2010-06-03 16:04:47 +0000
committerStefan Krah <stefan@bytereef.org>2010-06-03 16:04:47 +0000
commit312bdedf6f68b15c2af1342a6a1d93c783e04649 (patch)
tree7aaafc2b761cac750f66a5e143625881582774bb
parent7682063d41b25a0ea52f91f630b87b10dd3c85ae (diff)
downloadcpython-git-312bdedf6f68b15c2af1342a6a1d93c783e04649.tar.gz
Also skip when test_support.verbose is false.
-rw-r--r--Lib/test/test_signal.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index f458cdb7b0..ae5b586b28 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -141,9 +141,10 @@ class InterProcessSignalTests(unittest.TestCase):
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')
+ if sys.platform=='freebsd6':
+ if 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
@@ -435,9 +436,10 @@ class ItimerTest(unittest.TestCase):
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')
+ if sys.platform=='freebsd6':
+ if 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)
@@ -461,9 +463,10 @@ class ItimerTest(unittest.TestCase):
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')
+ if sys.platform=='freebsd6':
+ if 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)