summaryrefslogtreecommitdiff
path: root/tests/test_autodoc.py
diff options
context:
space:
mode:
authorAndrey Vlasovskikh <andrey.vlasovskikh@gmail.com>2015-07-31 21:56:13 +0300
committerAndrey Vlasovskikh <andrey.vlasovskikh@gmail.com>2015-07-31 21:56:13 +0300
commitef0d4e7946423cdcf9b61c0924d124ad40c63dd9 (patch)
treea1f9b819c8edd5b1d912f1443901ecb2a1e2b3f4 /tests/test_autodoc.py
parent12242563413eb9531781f43bc70dddb3cc1a2123 (diff)
downloadsphinx-git-ef0d4e7946423cdcf9b61c0924d124ad40c63dd9.tar.gz
Skip type hinting tests if there is a SyntaxError while importing a module with function annotations
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r--tests/test_autodoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py
index 7884e4ebe..03e2063fe 100644
--- a/tests/test_autodoc.py
+++ b/tests/test_autodoc.py
@@ -976,7 +976,7 @@ def test_type_hints():
try:
from typing_test_data import f0, f1, f2, f3, f4, f5, f6, f7, f8
- except ImportError:
+ except (ImportError, SyntaxError):
raise SkipTest('Cannot import Python code with function annotations')
def verify_arg_spec(f, expected):