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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
76567d05
Commit
76567d05
authored
Dec 28, 2010
by
Mark Florisson
Browse files
Options
Browse Files
Download
Plain Diff
Take first Cython step into function before reading variable in test
parents
7d98e4a1
9140d0f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+0
-1
Cython/Debugger/Tests/codefile
Cython/Debugger/Tests/codefile
+1
-1
Cython/Debugger/Tests/test_libcython_in_gdb.py
Cython/Debugger/Tests/test_libcython_in_gdb.py
+3
-0
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
76567d05
...
...
@@ -1619,7 +1619,6 @@ class DebugTransform(CythonTransform):
self
.
register_stepinto
=
True
self
.
serialize_modulenode_as_function
(
node
)
self
.
register_stepinto
=
False
self
.
tb
.
end
(
'Functions'
)
# 2.3 compatibility. Serialize global variables
...
...
Cython/Debugger/Tests/codefile
View file @
76567d05
...
...
@@ -51,4 +51,4 @@ closure()()
closure_without_closing_variables()()
spam()
print "bye!"
print "bye!"
\ No newline at end of file
Cython/Debugger/Tests/test_libcython_in_gdb.py
View file @
76567d05
...
...
@@ -356,6 +356,9 @@ class TestClosure(DebugTestCase):
def
test_cython_closure
(
self
):
self
.
break_and_run
(
'def inner():'
)
# Allow the Cython-generated code to initialize the scope variable
gdb
.
execute
(
'cy step'
)
self
.
assertEqual
(
str
(
self
.
read_var
(
'a'
)),
'1'
)
print_result
=
gdb
.
execute
(
'cy print a'
,
to_string
=
True
).
strip
()
self
.
assertEqual
(
print_result
,
'a = 1'
)
...
...
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