[pypy-svn] pypy default: Redo the change from modified-2.5.2.

arigo commits-noreply at bitbucket.org
Fri Jan 21 15:01:16 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41132:1bfe80bd8df4
Date: 2011-01-21 15:00 +0100
http://bitbucket.org/pypy/pypy/changeset/1bfe80bd8df4/

Log:	Redo the change from modified-2.5.2.

diff --git a/lib-python/2.7.0/test/test_inspect.py b/lib-python/modified-2.7.0/test/test_inspect.py
copy from lib-python/2.7.0/test/test_inspect.py
copy to lib-python/modified-2.7.0/test/test_inspect.py
--- a/lib-python/2.7.0/test/test_inspect.py
+++ b/lib-python/modified-2.7.0/test/test_inspect.py
@@ -9,6 +9,7 @@
 from UserDict import UserDict
 
 from test.test_support import run_unittest, check_py3k_warnings
+from pypy.test_support import check_impl_detail
 
 with check_py3k_warnings(
         ("tuple parameter unpacking has been removed", SyntaxWarning),
@@ -74,7 +75,8 @@
 
     def test_excluding_predicates(self):
         self.istest(inspect.isbuiltin, 'sys.exit')
-        self.istest(inspect.isbuiltin, '[].append')
+        if check_impl_detail():
+            self.istest(inspect.isbuiltin, '[].append')
         self.istest(inspect.iscode, 'mod.spam.func_code')
         self.istest(inspect.isframe, 'tb.tb_frame')
         self.istest(inspect.isfunction, 'mod.spam')


More information about the Pypy-commit mailing list