compare test result with CPython
authorStefan Behnel <stefan_ml@behnel.de>
Wed, 6 Mar 2013 22:14:30 +0000 (23:14 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Wed, 6 Mar 2013 22:14:30 +0000 (23:14 +0100)
--HG--
rename : tests/run/ref2global.pyx => tests/run/ref2global.py

tests/run/ref2global.py [moved from tests/run/ref2global.pyx with 59% similarity]

similarity index 59%
rename from tests/run/ref2global.pyx
rename to tests/run/ref2global.py
index e86c1da..ae18a5d 100644 (file)
@@ -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