diff options
author | Martin Packman <martin@zegami.com> | 2019-03-04 15:58:12 +0000 |
---|---|---|
committer | Martin Packman <martin@zegami.com> | 2019-03-08 13:30:27 +0000 |
commit | 71dec3b38e8231125bcc25b3bf6e484df921194f (patch) | |
tree | 9be12f0dc8c99a8068531b8d488229eb8435fe29 /tests/test_build.py | |
parent | be971c6d385b42524e0660f788abf6399877bc30 (diff) | |
download | sphinx-git-71dec3b38e8231125bcc25b3bf6e484df921194f.tar.gz |
Fix UnboundLocalError when building changes
Split testing of changes builder to its own test file and root.
Improve coverage a little, and add case that fails if a module
directive is included in the rst source.
Correctly handle changesets with a module declared.
Fixes https://github.com/sphinx-doc/sphinx/issues/6134
Diffstat (limited to 'tests/test_build.py')
-rw-r--r-- | tests/test_build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_build.py b/tests/test_build.py index 857e3c8b7..e2243a869 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -61,13 +61,13 @@ def nonascii_srcdir(request, rootdir, sphinx_test_tempdir): # note: this test skips building docs for some builders because they have independent testcase. -# (html, epub, latex, texinfo and manpage) +# (html, changes, epub, latex, texinfo and manpage) @pytest.mark.parametrize( "buildername", [ # note: no 'html' - if it's ok with dirhtml it's ok with html 'dirhtml', 'singlehtml', 'pickle', 'json', 'text', 'htmlhelp', 'qthelp', - 'applehelp', 'changes', 'xml', 'pseudoxml', 'linkcheck', + 'applehelp', 'xml', 'pseudoxml', 'linkcheck', ], ) @mock.patch('sphinx.builders.linkcheck.requests.head', |