From 972b304861402fa6428293ffbe3a37530e8b23f8 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 7 Dec 2008 22:46:33 +0100 Subject: [PATCH] extended with statement test case - disabled for now as it triggers a crash --- tests/run/withstat.pyx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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: -- 2.26.2