From: Dag Sverre Seljebotn Date: Thu, 19 Jun 2008 02:42:41 +0000 (-0700) Subject: Added test case with typing X-Git-Tag: 0.9.8.1~49^2~120^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aab01ad2804bfbaacf88306de57bdd63105b9c6f;p=cython.git Added test case with typing --- diff --git a/tests/run/withstat.pyx b/tests/run/withstat.pyx index eb23902d..f44b0c28 100644 --- a/tests/run/withstat.pyx +++ b/tests/run/withstat.pyx @@ -26,6 +26,10 @@ exit enter (1, 2, (3, (4, 5))) exit +>>> typed() +enter +10 +exit """ class MyException(Exception): @@ -68,3 +72,9 @@ def tupletarget(): with ContextManager((1, 2, (3, (4, 5)))) as t: print t +def typed(): + cdef unsigned char i + c = ContextManager(255) + with c as i: + i += 11 + print i