diff options
| author | Georg Brandl <georg@python.org> | 2008-12-28 19:44:10 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2008-12-28 19:44:10 +0100 |
| commit | 4ed7be8db5c9dfa98d660472769c6f3818ae5d5a (patch) | |
| tree | 69188577ca5b44096a90d548fd9ae8278c232a49 /tests | |
| parent | 21b155b73b985c46f5002b1f040acceaf5308dde (diff) | |
| download | sphinx-4ed7be8db5c9dfa98d660472769c6f3818ae5d5a.tar.gz | |
Fix test_autodoc after return annotation change.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_autodoc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index fb4d4f8b..cca1848c 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -95,7 +95,7 @@ def test_resolve_name(): assert gen.resolve_name('function', 'util.raises') == \ ('util', ['raises'], None, None) assert gen.resolve_name('function', 'util.raises(exc) -> None') == \ - ('util', ['raises'], 'exc', ' -> None') + ('util', ['raises'], 'exc', 'None') gen.env.autodoc_current_module = 'util' assert gen.resolve_name('function', 'raises') == \ ('util', ['raises'], None, None) @@ -134,7 +134,7 @@ def test_format_signature(): assert gen.format_signature('function', 'f', f, None, None) == '(a, b, c=1, **d)' assert gen.format_signature('function', 'f', f, 'a, b, c, d', None) == \ '(a, b, c, d)' - assert gen.format_signature('function', 'f', f, None, ' -> None') == \ + assert gen.format_signature('function', 'f', f, None, 'None') == \ '(a, b, c=1, **d) -> None' # test for classes @@ -152,7 +152,7 @@ def test_format_signature(): pass for C in (F, G): assert gen.format_signature('class', 'C', C, None, None) == '(a, b=None)' - assert gen.format_signature('class', 'C', D, 'a, b', ' -> X') == '(a, b) -> X' + assert gen.format_signature('class', 'C', D, 'a, b', 'X') == '(a, b) -> X' # test for methods class H: |
