##// END OF EJS Templates
[lib][tests][latextools] Remove nose
Samuel Gaist -
Show More
@@ -5,7 +5,6 b''
5 from contextlib import contextmanager
5 from contextlib import contextmanager
6 from unittest.mock import patch
6 from unittest.mock import patch
7
7
8 import nose.tools as nt
9 import pytest
8 import pytest
10
9
11 from IPython.lib import latextools
10 from IPython.lib import latextools
@@ -185,7 +184,13 b' def test_latex_to_png_invalid_hex_colors():'
185 Test that invalid hex colors provided to dvipng gives an exception.
184 Test that invalid hex colors provided to dvipng gives an exception.
186 """
185 """
187 latex_string = "$x^2$"
186 latex_string = "$x^2$"
188 nt.assert_raises(ValueError, lambda: latextools.latex_to_png(latex_string,
187 pytest.raises(
189 backend='dvipng', color="#f00bar"))
188 ValueError,
190 nt.assert_raises(ValueError, lambda: latextools.latex_to_png(latex_string,
189 lambda: latextools.latex_to_png(
191 backend='dvipng', color="#f00"))
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