Commit 72e7dda3 authored by Stefan Behnel's avatar Stefan Behnel

prevent cython.inline() tests from writing into use home directory

parent d1acc14e
...@@ -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:
......
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