Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
312bdedf
Commit
312bdedf
authored
Jun 03, 2010
by
Stefan Krah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also skip when test_support.verbose is false.
parent
7682063d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
Lib/test/test_signal.py
Lib/test/test_signal.py
+12
-9
No files found.
Lib/test/test_signal.py
View file @
312bdedf
...
@@ -141,9 +141,10 @@ class InterProcessSignalTests(unittest.TestCase):
...
@@ -141,9 +141,10 @@ class InterProcessSignalTests(unittest.TestCase):
def
test_main
(
self
):
def
test_main
(
self
):
# Issue 3864, unknown if this affects earlier versions of freebsd also
# Issue 3864, unknown if this affects earlier versions of freebsd also
if
sys
.
platform
==
'freebsd6'
and
test_support
.
verbose
:
if
sys
.
platform
==
'freebsd6'
:
sys
.
stderr
.
write
(
'skipping -- inter process signals not reliable '
if
test_support
.
verbose
:
'(do not mix well with threading) on freebsd6
\
n
'
)
sys
.
stderr
.
write
(
'skipping -- inter process signals not '
'reliable (do not mix well with threading) on freebsd6
\
n
'
)
return
return
# This function spawns a child process to insulate the main
# This function spawns a child process to insulate the main
# test-running process from all the signals. It then
# test-running process from all the signals. It then
...
@@ -435,9 +436,10 @@ class ItimerTest(unittest.TestCase):
...
@@ -435,9 +436,10 @@ class ItimerTest(unittest.TestCase):
def
test_itimer_virtual
(
self
):
def
test_itimer_virtual
(
self
):
# Issue 3864, unknown if this affects earlier versions of freebsd also
# Issue 3864, unknown if this affects earlier versions of freebsd also
if
sys
.
platform
==
'freebsd6'
and
test_support
.
verbose
:
if
sys
.
platform
==
'freebsd6'
:
sys
.
stderr
.
write
(
'skipping -- itimer not reliable '
if
test_support
.
verbose
:
'(does not mix well with threading) on freebsd6
\
n
'
)
sys
.
stderr
.
write
(
'skipping -- itimer not reliable (does not '
'mix well with threading) on freebsd6
\
n
'
)
return
return
self
.
itimer
=
signal
.
ITIMER_VIRTUAL
self
.
itimer
=
signal
.
ITIMER_VIRTUAL
signal
.
signal
(
signal
.
SIGVTALRM
,
self
.
sig_vtalrm
)
signal
.
signal
(
signal
.
SIGVTALRM
,
self
.
sig_vtalrm
)
...
@@ -461,9 +463,10 @@ class ItimerTest(unittest.TestCase):
...
@@ -461,9 +463,10 @@ class ItimerTest(unittest.TestCase):
def
test_itimer_prof
(
self
):
def
test_itimer_prof
(
self
):
# Issue 3864, unknown if this affects earlier versions of freebsd also
# Issue 3864, unknown if this affects earlier versions of freebsd also
if
sys
.
platform
==
'freebsd6'
and
test_support
.
verbose
:
if
sys
.
platform
==
'freebsd6'
:
sys
.
stderr
.
write
(
'skipping -- itimer not reliable '
if
test_support
.
verbose
:
'(does not mix well with threading) on freebsd6
\
n
'
)
sys
.
stderr
.
write
(
'skipping -- itimer not reliable (does not '
'mix well with threading) on freebsd6
\
n
'
)
return
return
self
.
itimer
=
signal
.
ITIMER_PROF
self
.
itimer
=
signal
.
ITIMER_PROF
signal
.
signal
(
signal
.
SIGPROF
,
self
.
sig_prof
)
signal
.
signal
(
signal
.
SIGPROF
,
self
.
sig_prof
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment