Skip testcase for sphinx.util.inspect on 3.4.3

The inspect library of python-3.4.3 also can't handle wrapped
functions.
This commit is contained in:
Takeshi KOMIYA
2017-05-09 23:02:40 +09:00
parent c1ff084ef6
commit 5e65316459

View File

@@ -10,6 +10,7 @@
""" """
from unittest import TestCase from unittest import TestCase
import sys
from six import PY3 from six import PY3
import functools import functools
from textwrap import dedent from textwrap import dedent
@@ -65,7 +66,7 @@ class TestGetArgSpec(TestCase):
pass pass
assert expected_unbound == inspect.getargspec(Foo.method) assert expected_unbound == inspect.getargspec(Foo.method)
if PY3: if PY3 and sys.version_info >= (3, 4, 4):
# On py2, the inspect functions don't properly handle bound # On py2, the inspect functions don't properly handle bound
# methods (they include a spurious 'self' argument) # methods (they include a spurious 'self' argument)
assert expected_bound == inspect.getargspec(bound_method) assert expected_bound == inspect.getargspec(bound_method)