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
a235510d
Commit
a235510d
authored
Aug 09, 2011
by
Éric Araujo
Browse files
Options
Browse Files
Download
Plain Diff
Branch merge
parents
f3f0a59e
a166e813
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Doc/tutorial/controlflow.rst
Doc/tutorial/controlflow.rst
+3
-0
Lib/test/test_faulthandler.py
Lib/test/test_faulthandler.py
+5
-4
No files found.
Doc/tutorial/controlflow.rst
View file @
a235510d
...
...
@@ -184,6 +184,9 @@ following loop, which searches for prime numbers::
8 equals 2 * 4
9 equals 3 * 3
(Yes, this is the correct code. Look closely: the ``else`` clause belongs to
the :keyword:`for` loop, **not** the :keyword:`if` statement.)
.. _tut-pass:
...
...
Lib/test/test_faulthandler.py
View file @
a235510d
...
...
@@ -112,7 +112,8 @@ faulthandler.enable()
faulthandler._read_null()
"""
.
strip
(),
3
,
'(?:Segmentation fault|Bus error)'
)
# Issue #12700: Read NULL raises SIGILL on Mac OS X Lion
'(?:Segmentation fault|Bus error|Illegal instruction)'
)
def
test_sigsegv
(
self
):
self
.
check_fatal_error
(
"""
...
...
@@ -192,7 +193,7 @@ faulthandler.enable()
faulthandler._read_null(True)
"""
.
strip
(),
3
,
'(?:Segmentation fault|Bus error)'
)
'(?:Segmentation fault|Bus error
|Illegal instruction
)'
)
def
test_enable_file
(
self
):
with
temporary_filename
()
as
filename
:
...
...
@@ -203,7 +204,7 @@ faulthandler.enable(output)
faulthandler._read_null()
"""
.
strip
().
format
(
filename
=
repr
(
filename
)),
4
,
'(?:Segmentation fault|Bus error)'
,
'(?:Segmentation fault|Bus error
|Illegal instruction
)'
,
filename
=
filename
)
def
test_enable_single_thread
(
self
):
...
...
@@ -213,7 +214,7 @@ faulthandler.enable(all_threads=False)
faulthandler._read_null()
"""
.
strip
(),
3
,
'(?:Segmentation fault|Bus error)'
,
'(?:Segmentation fault|Bus error
|Illegal instruction
)'
,
all_threads
=
False
)
def
test_disable
(
self
):
...
...
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