summaryrefslogtreecommitdiff
path: root/tests/run/inlinepxd.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/inlinepxd.pyx')
-rw-r--r--tests/run/inlinepxd.pyx14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/run/inlinepxd.pyx b/tests/run/inlinepxd.pyx
index 3d724f7d3..65c596c36 100644
--- a/tests/run/inlinepxd.pyx
+++ b/tests/run/inlinepxd.pyx
@@ -1,3 +1,8 @@
+# mode: run
+# tag: inline, pxd
+
+# cython: wraparound = False
+
__doc__ = u"""
>>> f()
3
@@ -28,3 +33,12 @@ def i():
def j():
return my_add3(2, 4)
+
+def test_wraparound():
+ """
+ >>> test_wraparound()
+ 1.0
+ """
+ # the wraparound directive from this scope should not affect the inline pxd
+ a = [ 0.0, 1.0 ]
+ return inlinepxd_support.index(a)