mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Give a binary document name.
This commit is contained in:
parent
bd2eb1e085
commit
8cb5a02312
@ -13,6 +13,7 @@ from docutils import frontend, utils
|
|||||||
from docutils.parsers import rst
|
from docutils.parsers import rst
|
||||||
|
|
||||||
from sphinx.search import IndexBuilder
|
from sphinx.search import IndexBuilder
|
||||||
|
from sphinx.util.pycompat import b
|
||||||
|
|
||||||
|
|
||||||
settings = parser = None
|
settings = parser = None
|
||||||
@ -31,7 +32,7 @@ test that non-comments are indexed: fermion
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
def test_wordcollector():
|
def test_wordcollector():
|
||||||
doc = utils.new_document('test data', settings)
|
doc = utils.new_document(b('test data'), settings)
|
||||||
doc['file'] = 'dummy'
|
doc['file'] = 'dummy'
|
||||||
parser.parse(FILE_CONTENTS, doc)
|
parser.parse(FILE_CONTENTS, doc)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user