Show More
@@ -5,7 +5,6 b'' | |||
|
5 | 5 | from contextlib import contextmanager |
|
6 | 6 | from unittest.mock import patch |
|
7 | 7 | |
|
8 | import nose.tools as nt | |
|
9 | 8 | import pytest |
|
10 | 9 | |
|
11 | 10 | from IPython.lib import latextools |
@@ -185,7 +184,13 b' def test_latex_to_png_invalid_hex_colors():' | |||
|
185 | 184 | Test that invalid hex colors provided to dvipng gives an exception. |
|
186 | 185 | """ |
|
187 | 186 | latex_string = "$x^2$" |
|
188 | nt.assert_raises(ValueError, lambda: latextools.latex_to_png(latex_string, | |
|
189 | backend='dvipng', color="#f00bar")) | |
|
190 |
|
|
|
191 |
|
|
|
187 | pytest.raises( | |
|
188 | ValueError, | |
|
189 | lambda: latextools.latex_to_png( | |
|
190 | latex_string, backend="dvipng", color="#f00bar" | |
|
191 | ), | |
|
192 | ) | |
|
193 | pytest.raises( | |
|
194 | ValueError, | |
|
195 | lambda: latextools.latex_to_png(latex_string, backend="dvipng", color="#f00"), | |
|
196 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now