Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe4eb8d

Browse files
committed
Merge pull request #8390 from takluyver/skip-builtin-no-signature
Skip test that builtin signature can't be inspected
2 parents e68e4c8 + d509000 commit fe4eb8d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

IPython/core/tests/test_oinspect.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# Stdlib imports
1717
import os
1818
import re
19+
import sys
1920

2021
# Third-party imports
2122
import nose.tools as nt
@@ -48,7 +49,7 @@
4849
# defined, if any code is inserted above, the following line will need to be
4950
# updated. Do NOT insert any whitespace between the next line and the function
5051
# definition below.
51-
THIS_LINE_NUMBER = 51 # Put here the actual number of this line
52+
THIS_LINE_NUMBER = 52 # Put here the actual number of this line
5253
def test_find_source_lines():
5354
nt.assert_equal(oinspect.find_source_lines(test_find_source_lines),
5455
THIS_LINE_NUMBER+1)
@@ -203,6 +204,7 @@ def test_calltip_function2():
203204
check_calltip(g, 'g', 'g(y, z=3, *a, **kw)', '<no docstring>')
204205

205206

207+
@skipif(sys.version_info >= (3, 5))
206208
def test_calltip_builtin():
207209
check_calltip(sum, 'sum', None, sum.__doc__)
208210

0 commit comments

Comments
 (0)