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
Gwenaël Samain
cython
Commits
1f787515
Commit
1f787515
authored
May 27, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disabled broken 'with gil' tests that use undeclared variables
parent
2bd55da7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
36 deletions
+40
-36
tests/run/with_gil.pyx
tests/run/with_gil.pyx
+40
-36
No files found.
tests/run/with_gil.pyx
View file @
1f787515
...
...
@@ -139,42 +139,46 @@ def test_restore_exception():
finally
:
raise
Exception
(
"Override the raised exception"
)
def
test_declared_variables
():
"""
>>> test_declared_variables()
None
None
['s', 'p', 'a', 'm']
['s', 'p', 'a', 'm']
"""
cdef
object
somevar
print
somevar
with
nogil
:
with
gil
:
print
somevar
somevar
=
list
(
"spam"
)
print
somevar
print
somevar
def
test_undeclared_variables
():
"""
>>> test_undeclared_variables()
None
None
['s', 'p', 'a', 'm']
['s', 'p', 'a', 'm']
"""
print
somevar
with
nogil
:
with
gil
:
print
somevar
somevar
=
list
(
"spam"
)
print
somevar
print
somevar
### DISABLED: this cannot work with flow control analysis
##
## def test_declared_variables():
## """
## >>> test_declared_variables()
## None
## None
## ['s', 'p', 'a', 'm']
## ['s', 'p', 'a', 'm']
## """
## cdef object somevar
##
## print somevar
##
## with nogil:
## with gil:
## print somevar
## somevar = list("spam")
## print somevar
##
## print somevar
### DISABLED: this cannot work with flow control analysis
##
## def test_undeclared_variables():
## """
## >>> test_undeclared_variables()
## None
## None
## ['s', 'p', 'a', 'm']
## ['s', 'p', 'a', 'm']
## """
## print somevar
## with nogil:
## with gil:
## print somevar
## somevar = list("spam")
## print somevar
##
## print somevar
def
test_loops_and_boxing
():
"""
...
...
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