[pypy-svn] r55698 - pypy/dist/pypy/interpreter/test

fijal at codespeak.net fijal at codespeak.net
Mon Jun 9 19:09:34 CEST 2008


Author: fijal
Date: Mon Jun  9 19:09:34 2008
New Revision: 55698

Modified:
   pypy/dist/pypy/interpreter/test/test_code.py
Log:
Revert 55697, it was breaking test.


Modified: pypy/dist/pypy/interpreter/test/test_code.py
==============================================================================
--- pypy/dist/pypy/interpreter/test/test_code.py	(original)
+++ pypy/dist/pypy/interpreter/test/test_code.py	Mon Jun  9 19:09:34 2008
@@ -138,10 +138,10 @@
         assert hash(d1['f'].func_code) == hash(d2['f'].func_code)
 
     def test_inspect(self):
-        def f(obj):
-            pass
+        if not hasattr(len, 'func_code'):
+            skip("Cannot run this test if builtins have no func_code")
         import inspect
-        args, varargs, varkw = inspect.getargs(f.func_code)
+        args, varargs, varkw = inspect.getargs(len.func_code)
         assert args == ['obj']
         assert varargs is None
         assert varkw is None



More information about the Pypy-commit mailing list