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
306738b8
Commit
306738b8
authored
Oct 07, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #25783: Fixed test_traceback when run directly (without regrtest).
parents
2ee12168
d57fd0a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Lib/test/test_traceback.py
Lib/test/test_traceback.py
+6
-2
No files found.
Lib/test/test_traceback.py
View file @
306738b8
...
...
@@ -819,8 +819,12 @@ class TestFrame(unittest.TestCase):
class
TestStack
(
unittest
.
TestCase
):
def
test_walk_stack
(
self
):
s
=
list
(
traceback
.
walk_stack
(
None
))
self
.
assertGreater
(
len
(
s
),
10
)
def
deeper
():
return
list
(
traceback
.
walk_stack
(
None
))
s1
=
list
(
traceback
.
walk_stack
(
None
))
s2
=
deeper
()
self
.
assertEqual
(
len
(
s2
)
-
len
(
s1
),
1
)
self
.
assertEqual
(
s2
[
1
:],
s1
)
def
test_walk_tb
(
self
):
try
:
...
...
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