summaryrefslogtreecommitdiff
path: root/tests/test_writer_latex.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_writer_latex.py')
-rw-r--r--tests/test_writer_latex.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_writer_latex.py b/tests/test_writer_latex.py
index 72eb7ed2a..33803299b 100644
--- a/tests/test_writer_latex.py
+++ b/tests/test_writer_latex.py
@@ -11,7 +11,7 @@
from __future__ import print_function
from sphinx.writers.latex import rstdim_to_latexdim
-from util import raises
+import pytest
def test_rstdim_to_latexdim():
@@ -32,5 +32,6 @@ def test_rstdim_to_latexdim():
assert rstdim_to_latexdim('.5em') == '.5em'
# unknown values (it might be generated by 3rd party extension)
- raises(ValueError, rstdim_to_latexdim, 'unknown')
+ with pytest.raises(ValueError):
+ rstdim_to_latexdim('unknown')
assert rstdim_to_latexdim('160.0unknown') == '160.0unknown'