summaryrefslogtreecommitdiff
path: root/tests/test_application.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-02-23 20:31:59 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-02-23 21:13:09 +0900
commitd9d5594c6f02e0e39337baace8fce750a8272980 (patch)
treef105842cf0456c5cba1999d63cdcb5575aa72c4d /tests/test_application.py
parentac4ec473784deed3f6be8eece1f1f0eccd8490ec (diff)
downloadsphinx-git-d9d5594c6f02e0e39337baace8fce750a8272980.tar.gz
Ignore filenames without file extension given to ``Builder.build_specific()``
So far, ``Builder.build_specific()`` accpets filnames without file extension. On the other hand, ``sphinx-build`` command does not accept such files. So the special handling code is only working for 3rd party applications. The behavior is not consistent. In addition, that is not helpful for users. This removes such behavior from builders. This does not change Sphinx application itself. It only effects to the applications which uses the API directly.
Diffstat (limited to 'tests/test_application.py')
-rw-r--r--tests/test_application.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_application.py b/tests/test_application.py
index 1a4d41289..08c13c5cf 100644
--- a/tests/test_application.py
+++ b/tests/test_application.py
@@ -131,7 +131,7 @@ def test_build_specific(app):
app.srcdir / 'subdir/../subdir/excluded.txt'] # not normalized
app.build(False, filenames)
- expected = ['index', 'images', 'img.png', 'subdir/includes', 'subdir/excluded']
+ expected = ['index', 'img.png', 'subdir/includes', 'subdir/excluded']
app.builder.build.assert_called_with(expected,
method='specific',
- summary='5 source files given on command line')
+ summary='4 source files given on command line')