From 021974ed94a8055cd2d64c6c96b264f2398b9f09 Mon Sep 17 00:00:00 2001 From: shimizukawa Date: Wed, 19 Oct 2016 01:08:07 +0900 Subject: [PATCH] refs #2432 update for latest master --- tests/test_autodoc.py | 4 ++-- 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