diff options
author | shimizukawa <shimizukawa@gmail.com> | 2016-10-19 01:08:07 +0900 |
---|---|---|
committer | shimizukawa <shimizukawa@gmail.com> | 2016-10-19 01:08:07 +0900 |
commit | 021974ed94a8055cd2d64c6c96b264f2398b9f09 (patch) | |
tree | ce09f4ed9fc6d4d2246b1c65e2ab8383567b811c | |
parent | d1c6d3c45bfe5bc9c0cdb2d2de0724512c01d76c (diff) | |
download | sphinx-git-021974ed94a8055cd2d64c6c96b264f2398b9f09.tar.gz |
refs #2432 update for latest master
-rw-r--r-- | tests/test_autodoc.py | 4 | ||||
-rw-r--r-- | tests/typing_test_data.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index 024b71002..d290e050b 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -1025,7 +1025,7 @@ def test_type_hints(): from sphinx.util.inspect import getargspec try: - from typing_test_data import f0, f1, f2, f3, f4, f5, f6, f7, f8, f9 + from typing_test_data import f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10 except (ImportError, SyntaxError): raise SkipTest('Cannot import Python code with function annotations') @@ -1066,4 +1066,4 @@ def test_type_hints(): ' y: typing.Tuple[int, ...]) -> None') # Instance annotations - verify_arg_spec(f9, '(x: CustomAnnotation, y: 123) -> None') + verify_arg_spec(f10, '(x: CustomAnnotation, y: 123) -> None') diff --git a/tests/typing_test_data.py b/tests/typing_test_data.py index 8de28bc8a..beb8deebb 100644 --- a/tests/typing_test_data.py +++ b/tests/typing_test_data.py @@ -56,5 +56,5 @@ class CustomAnnotation: def __repr__(self): return 'CustomAnnotation' -def f9(x: CustomAnnotation(), y: 123) -> None: +def f10(x: CustomAnnotation(), y: 123) -> None: pass |