mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
parent
c1ff084ef6
commit
5e65316459
@ -10,6 +10,7 @@
|
||||
"""
|
||||
from unittest import TestCase
|
||||
|
||||
import sys
|
||||
from six import PY3
|
||||
import functools
|
||||
from textwrap import dedent
|
||||
@ -65,7 +66,7 @@ class TestGetArgSpec(TestCase):
|
||||
pass
|
||||
|
||||
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
|
||||
# methods (they include a spurious 'self' argument)
|
||||
assert expected_bound == inspect.getargspec(bound_method)
|
||||
|
Loading…
Reference in New Issue
Block a user