[pypy-svn] pypy default: List this as an implementation detail. It's uncommon anyway to use

arigo commits-noreply at bitbucket.org
Fri Jan 21 17:28:44 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41155:87e2c40a7d88
Date: 2011-01-21 17:28 +0100
http://bitbucket.org/pypy/pypy/changeset/87e2c40a7d88/

Log:	List this as an implementation detail. It's uncommon anyway to use
	the 'eval' mode with codeop.

diff --git a/lib-python/2.7.0/test/test_codeop.py b/lib-python/modified-2.7.0/test/test_codeop.py
copy from lib-python/2.7.0/test/test_codeop.py
copy to lib-python/modified-2.7.0/test/test_codeop.py
--- a/lib-python/2.7.0/test/test_codeop.py
+++ b/lib-python/modified-2.7.0/test/test_codeop.py
@@ -3,7 +3,7 @@
    Nick Mathewson
 """
 import unittest
-from test.test_support import run_unittest, is_jython
+from test.test_support import run_unittest, is_jython, check_impl_detail
 
 from codeop import compile_command, PyCF_DONT_IMPLY_DEDENT
 
@@ -270,7 +270,9 @@
         ai("a = 'a\\\n")
 
         ai("a = 1","eval")
-        ai("a = (","eval")
+        if check_impl_detail():   # on PyPy it asks for more data, which is not
+            ai("a = (","eval")    # completely correct but hard to fix and
+                                  # really a detail (in my opinion <arigo>)
         ai("]","eval")
         ai("())","eval")
         ai("[}","eval")


More information about the Pypy-commit mailing list