mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Skip type hinting tests if there is a SyntaxError while importing a module with function annotations
This commit is contained in:
parent
1224256341
commit
ef0d4e7946
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user