diff options
| author | Georg Brandl <georg@python.org> | 2010-02-21 22:59:53 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-02-21 22:59:53 +0100 |
| commit | 686824997dffd30b689f0abc5f3df8997149acc4 (patch) | |
| tree | 45046d9fbe9e83f303d604e7dc49e04c62f62f3b /tests/test_autodoc.py | |
| parent | b81b7a046328dff1cac28b9b35920f4636a8465f (diff) | |
| download | sphinx-git-686824997dffd30b689f0abc5f3df8997149acc4.tar.gz | |
In autodoc, allow customizing the signature of an object via autodoc-process-signature where the built-in mechanism fails.
Diffstat (limited to 'tests/test_autodoc.py')
| -rw-r--r-- | tests/test_autodoc.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index 73394bf22..e0845b67a 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -169,8 +169,9 @@ def test_format_signature(): assert formatsig('method', 'H.foo', H.foo1, 'a', None) == '(a)' assert formatsig('method', 'H.foo', H.foo2, None, None) == '(b, *c)' - # test exception handling - raises(TypeError, formatsig, 'function', 'int', int, None, None) + # test exception handling (exception is caught and args is '') + assert formatsig('function', 'int', int, None, None) == '' + del _warnings[:] # test processing by event handler assert formatsig('method', 'bar', H.foo1, None, None) == '42' |
