Skip to content

Commit 5af61ae

Browse files
rossbarlarsoner
authored andcommitted
MAINT: Fix code comments.
A comment pertaining to docutils_namespace() had been separated from the code that it was referring to. Moved comment back to appropriate location and added a separate comment to unrelated code to differentiate the two.
1 parent d04a1ac commit 5af61ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

numpydoc/tests/test_full.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ def ignore(src, names):
2525
conf_dir = temp_dir
2626
out_dir = op.join(temp_dir, '_build', 'html')
2727
toctrees_dir = op.join(temp_dir, '_build', 'toctrees')
28-
# Avoid warnings about re-registration, see:
29-
# https://github.com/sphinx-doc/sphinx/issues/5038
28+
# Set behavior across different Sphinx versions
3029
kwargs = dict()
3130
if LooseVersion(sphinx.__version__) >= LooseVersion('1.8'):
3231
kwargs.update(warningiserror=True, keep_going=True)
32+
# Avoid warnings about re-registration, see:
33+
# https://github.com/sphinx-doc/sphinx/issues/5038
3334
with docutils_namespace():
3435
app = Sphinx(src_dir, conf_dir, out_dir, toctrees_dir,
3536
buildername='html', **kwargs)

0 commit comments

Comments
 (0)