From: Stefan Behnel Date: Wed, 6 Mar 2013 22:14:30 +0000 (+0100) Subject: compare test result with CPython X-Git-Tag: 0.19b1~101 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66f0def50ae726b1e13cd10f93cd8eb021611a5d;p=platform%2Fupstream%2Fpython-cython.git compare test result with CPython --HG-- rename : tests/run/ref2global.pyx => tests/run/ref2global.py --- diff --git a/tests/run/ref2global.pyx b/tests/run/ref2global.py similarity index 59% rename from tests/run/ref2global.pyx rename to tests/run/ref2global.py index e86c1da..ae18a5d 100644 --- a/tests/run/ref2global.pyx +++ b/tests/run/ref2global.py @@ -9,9 +9,11 @@ except ImportError: def f(a): """ - >>> f(1) + Py<=3.3 gives 'global name ...', Py3.4+ only 'name ...' + + >>> f(1) # doctest: +ELLIPSIS Traceback (most recent call last): - NameError: name 'definitely_unknown_name' is not defined + NameError: ...name 'definitely_unknown_name' is not defined """ a = f a = definitely_unknown_name