Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e01e332

Browse files
committed
[lib][tests][latextools] Remove nose
1 parent a1ddd3b commit e01e332

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

IPython/lib/tests/test_latextools.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from contextlib import contextmanager
66
from unittest.mock import patch
77

8-
import nose.tools as nt
98
import pytest
109

1110
from IPython.lib import latextools
@@ -185,7 +184,13 @@ def test_latex_to_png_invalid_hex_colors():
185184
Test that invalid hex colors provided to dvipng gives an exception.
186185
"""
187186
latex_string = "$x^2$"
188-
nt.assert_raises(ValueError, lambda: latextools.latex_to_png(latex_string,
189-
backend='dvipng', color="#f00bar"))
190-
nt.assert_raises(ValueError, lambda: latextools.latex_to_png(latex_string,
191-
backend='dvipng', color="#f00"))
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+
)

0 commit comments

Comments
 (0)