From: Stefan Behnel Date: Sun, 7 Dec 2008 21:46:33 +0000 (+0100) Subject: extended with statement test case - disabled for now as it triggers a crash X-Git-Tag: 0.11-beta~149 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=972b304861402fa6428293ffbe3a37530e8b23f8;p=cython.git extended with statement test case - disabled for now as it triggers a crash --- diff --git a/tests/run/withstat.pyx b/tests/run/withstat.pyx index bb407af8..6f43ea8b 100644 --- a/tests/run/withstat.pyx +++ b/tests/run/withstat.pyx @@ -9,6 +9,12 @@ exit enter value exit +>>> with_return() +enter +exit +>>> with_pass() +enter +exit >>> with_exception(None) enter value @@ -58,6 +64,16 @@ def no_as(): def basic(): with ContextManager(u"value") as x: print x + +def with_pass(): + with ContextManager(u"value") as x: + pass + +def with_return(): + with ContextManager(u"value") as x: + # FIXME: DISABLED - currently crashes!! + # return x + pass def with_exception(exit_ret): try: