Skip to content

Commit 8347eb3

Browse files
committed
test: fix tests
1 parent ca50e93 commit 8347eb3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/system/small/test_dataframe.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,8 @@ def test_mimebundle_html_repr_w_all_rows(scalars_dfs, session):
969969
executions_pre = metrics.execution_count
970970
# When there are 10 or fewer rows, the outputs should be identical except for the extra note.
971971
bundle = scalars_df.head(10)._repr_mimebundle_()
972+
if isinstance(bundle, tuple):
973+
bundle = bundle[0]
972974
actual = bundle["text/html"]
973975
executions_post = metrics.execution_count
974976

tests/unit/test_dataframe_polars.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,8 @@ def test_mimebundle_html_repr_w_all_rows(scalars_dfs, session):
746746

747747
# When there are 10 or fewer rows, the outputs should be identical except for the extra note.
748748
bundle = scalars_df.head(10)._repr_mimebundle_()
749+
if isinstance(bundle, tuple):
750+
bundle = bundle[0]
749751
actual = bundle["text/html"]
750752

751753
with display_options.pandas_repr(bigframes.options.display):

0 commit comments

Comments
 (0)