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
Hide 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():
...
@@ -139,42 +139,46 @@ def test_restore_exception():
finally
:
finally
:
raise
Exception
(
"Override the raised exception"
)
raise
Exception
(
"Override the raised exception"
)
def
test_declared_variables
():
### DISABLED: this cannot work with flow control analysis
"""
##
>>> test_declared_variables()
## def test_declared_variables():
None
## """
None
## >>> test_declared_variables()
['s', 'p', 'a', 'm']
## None
['s', 'p', 'a', 'm']
## None
"""
## ['s', 'p', 'a', 'm']
cdef
object
somevar
## ['s', 'p', 'a', 'm']
## """
print
somevar
## cdef object somevar
##
with
nogil
:
## print somevar
with
gil
:
##
print
somevar
## with nogil:
somevar
=
list
(
"spam"
)
## with gil:
print
somevar
## print somevar
## somevar = list("spam")
print
somevar
## print somevar
##
def
test_undeclared_variables
():
## print somevar
"""
>>> test_undeclared_variables()
### DISABLED: this cannot work with flow control analysis
None
##
None
## def test_undeclared_variables():
['s', 'p', 'a', 'm']
## """
['s', 'p', 'a', 'm']
## >>> test_undeclared_variables()
"""
## None
print
somevar
## None
with
nogil
:
## ['s', 'p', 'a', 'm']
with
gil
:
## ['s', 'p', 'a', 'm']
print
somevar
## """
somevar
=
list
(
"spam"
)
## print somevar
print
somevar
## with nogil:
## with gil:
print
somevar
## print somevar
## somevar = list("spam")
## print somevar
##
## print somevar
def
test_loops_and_boxing
():
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