projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77c3bab
)
fix for struct construction test
author
Robert Bradshaw
<robertwb@math.washington.edu>
Mon, 27 Oct 2008 16:21:52 +0000
(09:21 -0700)
committer
Robert Bradshaw
<robertwb@math.washington.edu>
Mon, 27 Oct 2008 16:21:52 +0000
(09:21 -0700)
tests/run/pure.pyx
patch
|
blob
|
history
diff --git
a/tests/run/pure.pyx
b/tests/run/pure.pyx
index 89688ab027094478387006e05b870e346db86a72..90a9d727b355d0be8e8878794d3e4b262070afe4 100644
(file)
--- a/
tests/run/pure.pyx
+++ b/
tests/run/pure.pyx
@@
-80,7
+80,7
@@
MyStruct2 = cython.typedef(MyStruct[2])
def test_struct(n, x):
a = cython.declare(MyStruct2)
a[0] = MyStruct(True, data=MyUnion(n=n))
- a[1] = MyStruct(is_integral=False, data={
x
: x})
+ a[1] = MyStruct(is_integral=False, data={
'x'
: x})
return a[0].data.n, a[1].data.x
import cython as cy