Skip to content

Commit c85871a

Browse files
authored
Update test_style.py
1 parent bac4dc4 commit c85871a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/tests/io/formats/style/test_style.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,12 @@ def test_repr_html_ok(self, styler):
487487

488488
def test_repr_html_mathjax(self, styler):
489489
# gh-19824 / 41395
490-
assert "tex2jax_ignore" not in styler._repr_html_() and "mathjax_ignore" not in styler._repr_html_()
490+
assert "tex2jax_ignore" not in styler._repr_html_()
491+
assert "mathjax_ignore" not in styler._repr_html_()
491492

492493
with option_context("styler.html.mathjax", False):
493-
assert "tex2jax_ignore" in styler._repr_html_() and "mathjax_ignore" in styler._repr_html_()
494+
assert "tex2jax_ignore" in styler._repr_html_()
495+
assert "mathjax_ignore" in styler._repr_html_()
494496

495497
def test_update_ctx(self, styler):
496498
styler._update_ctx(DataFrame({"A": ["color: red", "color: blue"]}))

0 commit comments

Comments
 (0)