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
8a79be0f
Commit
8a79be0f
authored
Nov 03, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed test from pure.pyx that only works in real pure mode
parent
7115c1ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
49 deletions
+0
-49
tests/run/pure.pyx
tests/run/pure.pyx
+0
-49
No files found.
tests/run/pure.pyx
View file @
8a79be0f
...
@@ -70,55 +70,6 @@ def test_locals(x):
...
@@ -70,55 +70,6 @@ def test_locals(x):
y
=
x
y
=
x
return
y
return
y
@
cython
.
test_assert_path_exists
(
"//TryFinallyStatNode"
,
"//TryFinallyStatNode//GILStatNode"
)
@
cython
.
test_fail_if_path_exists
(
"//TryFinallyStatNode//TryFinallyStatNode"
)
def
test_with_nogil
(
nogil
):
"""
>>> raised = []
>>> class nogil(object):
... def __enter__(self):
... pass
... def __exit__(self, exc_class, exc, tb):
... raised.append(exc)
... return exc_class is None
>>> test_with_nogil(nogil())
WORKS
True
>>> raised
[None]
"""
result
=
False
with
nogil
:
print
"WORKS"
with
cython
.
nogil
:
result
=
True
return
result
@
cython
.
test_assert_path_exists
(
"//TryFinallyStatNode"
,
"//TryFinallyStatNode//GILStatNode"
)
@
cython
.
test_fail_if_path_exists
(
"//TryFinallyStatNode//TryFinallyStatNode"
)
def
test_with_nogil_multiple
(
nogil
):
"""
>>> raised = []
>>> class nogil(object):
... def __enter__(self):
... pass
... def __exit__(self, exc_class, exc, tb):
... raised.append(exc)
... return exc_class is None
>>> test_with_nogil_multiple(nogil())
True
>>> raised
[None]
"""
result
=
False
with
nogil
,
cython
.
nogil
:
result
=
True
return
result
MyUnion
=
cython
.
union
(
n
=
cython
.
int
,
x
=
cython
.
double
)
MyUnion
=
cython
.
union
(
n
=
cython
.
int
,
x
=
cython
.
double
)
MyStruct
=
cython
.
struct
(
is_integral
=
cython
.
bint
,
data
=
MyUnion
)
MyStruct
=
cython
.
struct
(
is_integral
=
cython
.
bint
,
data
=
MyUnion
)
MyStruct2
=
cython
.
typedef
(
MyStruct
[
2
])
MyStruct2
=
cython
.
typedef
(
MyStruct
[
2
])
...
...
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