Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
fe17af96
Commit
fe17af96
authored
Jan 25, 2011
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debugger: Fix backtrace test -- don't check for main()
parent
b0f6eba4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
Cython/Debugger/Tests/test_libcython_in_gdb.py
Cython/Debugger/Tests/test_libcython_in_gdb.py
+10
-11
No files found.
Cython/Debugger/Tests/test_libcython_in_gdb.py
View file @
fe17af96
...
...
@@ -283,21 +283,20 @@ class TestBacktrace(DebugTestCase):
libcython.parameters.colorize_code.value = False
self.break_and_run('
os
.
path
.
join
(
"foo"
,
"bar"
)
')
result = gdb.execute('
cy
bt
', to_string=True)
_debug(libpython.execute, libpython._execute, gdb.execute)
_debug(gdb.execute('
cy
list
', to_string=True))
_debug(repr(result))
assert re.search(r'
\
#\d+ *0x.* in spam\(\) at .*codefile\.pyx:22',
result
),
result
assert
'os.path.join("foo", "bar")'
in
result
,
result
def match_backtrace_output(result):
assert re.search(r'
\
#\d+ *0x.* in spam\(\) at .*codefile\.pyx:22',
result
),
result
assert
'os.path.join("foo", "bar")'
in
result
,
result
gdb
.
execute
(
"cy step"
)
result
=
gdb
.
execute
(
'cy bt'
,
to_string
=
True
)
match_backtrace_output
(
result
)
gdb
.
execute
(
'cy bt'
)
result
=
gdb
.
execute
(
'cy bt -a'
,
to_string
=
True
)
assert
re
.
search
(
r'\
#
0 *0x.* in main\
(
\)'
,
result
),
result
match_backtrace_output
(
result
)
# Apparently not everyone has main()
# assert re.search(r'\#0 *0x.* in main\(\)', result), result
class
TestFunctions
(
DebugTestCase
):
...
...
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