summaryrefslogtreecommitdiff
path: root/tests/test_search.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-28 19:27:45 +0200
committerGeorg Brandl <georg@python.org>2010-07-28 19:27:45 +0200
commitf714133ad1807ae95c33a8ba294b288d4ca3af0a (patch)
tree8da1597952f9ced0d2d2a46b96e27439379506e8 /tests/test_search.py
parent6b95a4a689b9e44fea3b43a8df4b8edf3b5eef1d (diff)
downloadsphinx-f714133ad1807ae95c33a8ba294b288d4ca3af0a.tar.gz
Give a binary document name.
Diffstat (limited to 'tests/test_search.py')
-rw-r--r--tests/test_search.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_search.py b/tests/test_search.py
index 0b5b158b..c0750366 100644
--- a/tests/test_search.py
+++ b/tests/test_search.py
@@ -13,6 +13,7 @@ from docutils import frontend, utils
from docutils.parsers import rst
from sphinx.search import IndexBuilder
+from sphinx.util.pycompat import b
settings = parser = None
@@ -31,7 +32,7 @@ test that non-comments are indexed: fermion
'''
def test_wordcollector():
- doc = utils.new_document('test data', settings)
+ doc = utils.new_document(b('test data'), settings)
doc['file'] = 'dummy'
parser.parse(FILE_CONTENTS, doc)