From 4c256dece0a3535cc44f5072e61d1c21655c47f8 Mon Sep 17 00:00:00 2001 From: Brock Date: Fri, 4 Jul 2025 07:50:35 -0700 Subject: [PATCH] TST: option_context bug on Mac GH#58055 --- pandas/tests/io/formats/test_ipython_compat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/tests/io/formats/test_ipython_compat.py b/pandas/tests/io/formats/test_ipython_compat.py index 8512f41396906..df202dbd7d9fb 100644 --- a/pandas/tests/io/formats/test_ipython_compat.py +++ b/pandas/tests/io/formats/test_ipython_compat.py @@ -22,7 +22,8 @@ def test_publishes(self, ip): last_obj = None for obj, expected in zip(objects, expected_keys): last_obj = obj - with opt: + with cf.option_context("display.html.table_schema", True): + # Can't reuse opt on all systems GH#58055 formatted = ipython.display_formatter.format(obj) assert set(formatted[0].keys()) == expected