Commit 1f787515 authored by Stefan Behnel's avatar Stefan Behnel

disabled broken 'with gil' tests that use undeclared variables

parent 2bd55da7
...@@ -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():
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment