From ca0589182bfa0b864180b3e49d451522fca3ad9e 2015-04-28 23:37:48 From: Thomas Kluyver Date: 2015-04-28 23:37:48 Subject: [PATCH] Skip test that builtin signature can't be inspected Builtins can now provide a signature, and sum() does so as of Python 3.5. I thought this is related to PEP 436, but that still appears to be in draft status, so I'm not sure. --- diff --git a/IPython/core/tests/test_oinspect.py b/IPython/core/tests/test_oinspect.py index e0b2905..7e08f73 100644 --- a/IPython/core/tests/test_oinspect.py +++ b/IPython/core/tests/test_oinspect.py @@ -203,6 +203,7 @@ def test_calltip_function2(): check_calltip(g, 'g', 'g(y, z=3, *a, **kw)', '') +@skipif(sys.version_info >= (3, 5)) def test_calltip_builtin(): check_calltip(sum, 'sum', None, sum.__doc__)