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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user