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
938cfc0e
Commit
938cfc0e
authored
Jan 25, 2011
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tighten the restrictions on the test_sys test which triggers a fatal error when
run with tracing turned on.
parent
4f6d5c94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/test/test_sys.py
Lib/test/test_sys.py
+2
-2
No files found.
Lib/test/test_sys.py
View file @
938cfc0e
...
...
@@ -215,8 +215,8 @@ class SysModuleTest(unittest.TestCase):
self
.
assertEqual
(
sys
.
getrecursionlimit
(),
10000
)
sys
.
setrecursionlimit
(
oldlimit
)
@
unittest
.
skipIf
(
sys
.
gettrace
(),
'fatal error if run with a trace function'
)
@
test
.
support
.
cpython_only
@
unittest
.
skipIf
(
hasattr
(
sys
,
'gettrace'
)
and
sys
.
gettrace
(),
'fatal error if run with a trace function'
)
def
test_recursionlimit_recovery
(
self
):
# NOTE: this test is slightly fragile in that it depends on the current
# recursion count when executing the test being low enough so as to
...
...
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