Skip to content

Commit 4c256de

Browse files
committed
TST: option_context bug on Mac GH#58055
1 parent 51763f9 commit 4c256de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/io/formats/test_ipython_compat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def test_publishes(self, ip):
2222
last_obj = None
2323
for obj, expected in zip(objects, expected_keys):
2424
last_obj = obj
25-
with opt:
25+
with cf.option_context("display.html.table_schema", True):
26+
# Can't reuse opt on all systems GH#58055
2627
formatted = ipython.display_formatter.format(obj)
2728
assert set(formatted[0].keys()) == expected
2829

0 commit comments

Comments
 (0)