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
Kirill Smelkov
cython
Commits
72e7dda3
Commit
72e7dda3
authored
Jun 20, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent cython.inline() tests from writing into use home directory
parent
d1acc14e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Build/Tests/TestInline.py
Cython/Build/Tests/TestInline.py
+3
-3
No files found.
Cython/Build/Tests/TestInline.py
View file @
72e7dda3
...
@@ -45,10 +45,10 @@ class TestInline(CythonTest):
...
@@ -45,10 +45,10 @@ class TestInline(CythonTest):
a = 1
a = 1
cdef double b = 2
cdef double b = 2
cdef c = []
cdef c = []
"""
),
dict
(
a
=
1
,
b
=
2.0
,
c
=
[]))
"""
,
**
self
.
test_kwds
),
dict
(
a
=
1
,
b
=
2.0
,
c
=
[]))
def
test_def_node
(
self
):
def
test_def_node
(
self
):
foo
=
inline
(
"def foo(x): return x * x"
)[
'foo'
]
foo
=
inline
(
"def foo(x): return x * x"
,
**
self
.
test_kwds
)[
'foo'
]
self
.
assertEquals
(
foo
(
7
),
49
)
self
.
assertEquals
(
foo
(
7
),
49
)
def
test_pure
(
self
):
def
test_pure
(
self
):
...
@@ -57,7 +57,7 @@ class TestInline(CythonTest):
...
@@ -57,7 +57,7 @@ class TestInline(CythonTest):
b = cy.declare(float, a)
b = cy.declare(float, a)
c = cy.declare(cy.pointer(cy.float), &b)
c = cy.declare(cy.pointer(cy.float), &b)
return b
return b
"""
,
a
=
3
)
"""
,
a
=
3
,
**
self
.
test_kwds
)
self
.
assertEquals
(
type
(
b
),
float
)
self
.
assertEquals
(
type
(
b
),
float
)
if
has_numpy
:
if
has_numpy
:
...
...
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