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
a49178e4
Commit
a49178e4
authored
Mar 20, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#17493: merge with 3.2.
parents
ba7dd670
958f7ae8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
Lib/test/test_sys.py
Lib/test/test_sys.py
+9
-11
No files found.
Lib/test/test_sys.py
View file @
a49178e4
...
...
@@ -237,9 +237,6 @@ class SysModuleTest(unittest.TestCase):
def
test_recursionlimit_fatalerror
(
self
):
# A fatal error occurs if a second recursion limit is hit when recovering
# from a first one.
if
os
.
name
==
"nt"
:
raise
unittest
.
SkipTest
(
"under Windows, test would generate a spurious crash dialog"
)
code
=
textwrap
.
dedent
(
"""
import sys
...
...
@@ -251,14 +248,15 @@ class SysModuleTest(unittest.TestCase):
sys.setrecursionlimit(%d)
f()"""
)
for
i
in
(
50
,
1000
):
sub
=
subprocess
.
Popen
([
sys
.
executable
,
'-c'
,
code
%
i
],
stderr
=
subprocess
.
PIPE
)
err
=
sub
.
communicate
()[
1
]
self
.
assertTrue
(
sub
.
returncode
,
sub
.
returncode
)
self
.
assertTrue
(
b"Fatal Python error: Cannot recover from stack overflow"
in
err
,
err
)
with
test
.
support
.
suppress_crash_popup
():
for
i
in
(
50
,
1000
):
sub
=
subprocess
.
Popen
([
sys
.
executable
,
'-c'
,
code
%
i
],
stderr
=
subprocess
.
PIPE
)
err
=
sub
.
communicate
()[
1
]
self
.
assertTrue
(
sub
.
returncode
,
sub
.
returncode
)
self
.
assertIn
(
b"Fatal Python error: Cannot recover from stack overflow"
,
err
)
def
test_getwindowsversion
(
self
):
# Raise SkipTest if sys doesn't have getwindowsversion attribute
...
...
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