mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #3015: fix a broken test on Windows.
This commit is contained in:
parent
41b39b786a
commit
76f2ed9215
1
CHANGES
1
CHANGES
@ -4,6 +4,7 @@ Release 1.4.10 (in development)
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #3015: fix a broken test on Windows.
|
||||
|
||||
Release 1.4.9 (released Nov 23, 2016)
|
||||
=====================================
|
||||
|
@ -17,7 +17,7 @@ from textwrap import dedent
|
||||
from sphinx.errors import SphinxError
|
||||
import sphinx.builders.linkcheck
|
||||
|
||||
from util import with_app, with_tempdir, rootdir, tempdir, SkipTest, TestApp
|
||||
from util import with_app, with_tempdir, rootdir, tempdir, SkipTest, TestApp, path
|
||||
|
||||
try:
|
||||
from docutils.writers.manpage import Writer as ManWriter
|
||||
@ -148,16 +148,17 @@ def test_image_glob(app, status, warning):
|
||||
doctree = pickle.loads((app.doctreedir / 'subdir/index.doctree').bytes())
|
||||
|
||||
assert isinstance(doctree[0][1], nodes.image)
|
||||
assert doctree[0][1]['candidates'] == {'*': 'subdir/rimg.png'}
|
||||
assert doctree[0][1]['uri'] == 'subdir/rimg.png'
|
||||
sub = path('subdir')
|
||||
assert doctree[0][1]['candidates'] == {'*': sub / 'rimg.png'}
|
||||
assert doctree[0][1]['uri'] == sub / 'rimg.png'
|
||||
|
||||
assert isinstance(doctree[0][2], nodes.image)
|
||||
assert doctree[0][2]['candidates'] == {'application/pdf': 'subdir/svgimg.pdf',
|
||||
'image/svg+xml': 'subdir/svgimg.svg'}
|
||||
assert doctree[0][2]['uri'] == 'subdir/svgimg.*'
|
||||
assert doctree[0][2]['uri'] == sub / 'svgimg.*'
|
||||
|
||||
assert isinstance(doctree[0][3], nodes.figure)
|
||||
assert isinstance(doctree[0][3][0], nodes.image)
|
||||
assert doctree[0][3][0]['candidates'] == {'application/pdf': 'subdir/svgimg.pdf',
|
||||
'image/svg+xml': 'subdir/svgimg.svg'}
|
||||
assert doctree[0][3][0]['uri'] == 'subdir/svgimg.*'
|
||||
assert doctree[0][3][0]['uri'] == sub / 'svgimg.*'
|
||||
|
Loading…
Reference in New Issue
Block a user