From: Robert Bradshaw Date: Mon, 27 Oct 2008 16:21:52 +0000 (-0700) Subject: fix for struct construction test X-Git-Tag: 0.9.9.2.beta~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a823cf5ec1df99846198379f8d47591c7427a7f5;p=cython.git fix for struct construction test --- diff --git a/tests/run/pure.pyx b/tests/run/pure.pyx index 89688ab0..90a9d727 100644 --- 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