Skip to content

Commit

Permalink
Fix test_latex_refs for Sphinx 1.5.1. (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Feb 22, 2017
1 parent ed4013a commit e335cd9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Fix extremely high memory usage when handling large bibliographies
(reported by agjohnson, see issue #102).

* Fix tests for Sphinx 1.5.1 (see issue #111, reported by jamesjer).

0.3.4 (20 May 2016)
-------------------

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def readfile(filename):
with io.open(filename, encoding="utf-8") as stream:
return stream.read().split("\n")


readme = readfile("README.rst")[5:] # skip title and badges
requires = readfile("requirements.txt")
version = readfile("VERSION")[0].strip()
Expand Down
6 changes: 4 additions & 2 deletions test/test_latex_refs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ def teardown_module():
def test_latex_refs(app, status, warning):
app.builder.build_all()
output = (app.outdir / "test.tex").read_text()
assert re.search('\\hyperref\[contents:huygens\]', output)
assert re.search('\\label{contents:huygens}', output)
assert re.search(
'\\hyperref\[(\\\\detokenize{)?contents:huygens(})?}\]', output)
assert re.search(
'\\label{(\\\\detokenize{)?contents:huygens(})?}}', output)

0 comments on commit e335cd9

Please sign in to comment.