diff options
author | shimizukawa <shimizukawa@gmail.com> | 2014-06-09 01:43:34 +0900 |
---|---|---|
committer | shimizukawa <shimizukawa@gmail.com> | 2014-06-09 01:43:34 +0900 |
commit | 5d9d0c0314fe0a0ed19869452b336db618242dc2 (patch) | |
tree | 16f8e79477175135bb6b8b89ad5f2cf0a6792f86 /tests/test_autodoc.py | |
parent | 731bdd7b1e1f1e93089528de40f3ed67fab02fc4 (diff) | |
download | sphinx-5d9d0c0314fe0a0ed19869452b336db618242dc2.tar.gz |
* Fix exception on Python3 if nonexistent method is specified by automethod. Closes #1467
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r-- | tests/test_autodoc.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index 4c39f957..0be694f3 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -542,6 +542,9 @@ def test_generate(): # attributes missing assert_warns("failed to import function 'foobar' from module 'util'", 'function', 'util.foobar', more_content=None) + # method missing + assert_warns("failed to import method 'Class.foobar' from module 'test_autodoc';", + 'method', 'test_autodoc.Class.foobar', more_content=None) # test auto and given content mixing directive.env.temp_data['py:module'] = 'test_autodoc' |