mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-23 13:51:27 +08:00
Skip numpydoc tests for Python 2
This commit is contained in:
@@ -6,6 +6,7 @@ from textwrap import dedent
|
|||||||
import jedi
|
import jedi
|
||||||
import pytest
|
import pytest
|
||||||
from ..helpers import unittest
|
from ..helpers import unittest
|
||||||
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import numpydoc # NOQA
|
import numpydoc # NOQA
|
||||||
@@ -21,6 +22,11 @@ except ImportError:
|
|||||||
else:
|
else:
|
||||||
numpy_unavailable = False
|
numpy_unavailable = False
|
||||||
|
|
||||||
|
if sys.version_info.major == 2:
|
||||||
|
# In Python 2 there's an issue with tox/docutils that makes the tests fail,
|
||||||
|
# Python 2 is soon end-of-life, so just don't support numpydoc for it anymore.
|
||||||
|
numpydoc_unavailable = True
|
||||||
|
|
||||||
|
|
||||||
def test_function_doc(Script):
|
def test_function_doc(Script):
|
||||||
defs = Script("""
|
defs = Script("""
|
||||||
|
|||||||
Reference in New Issue
Block a user