summaryrefslogtreecommitdiff
path: root/tests/test_autodoc.py
diff options
context:
space:
mode:
authorTakayuki Shimizukawa <shimizukawa@gmail.com>2014-06-09 01:43:34 +0900
committerTakayuki Shimizukawa <shimizukawa@gmail.com>2014-06-09 01:43:34 +0900
commit1d742bdcf5181c0b8b4a3be310d28179d3d14819 (patch)
tree16f8e79477175135bb6b8b89ad5f2cf0a6792f86 /tests/test_autodoc.py
parentc8e2fd868306bd467729c3ee9dbfa3b2517bc873 (diff)
downloadsphinx-git-1d742bdcf5181c0b8b4a3be310d28179d3d14819.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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py
index 4c39f9578..0be694f38 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'