Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit f0422f3

Browse files
committed
Revert "fix: Localize BigQuery log suppression for gbq.py"
This reverts commit a7a3f8c.
1 parent d195f07 commit f0422f3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
import pyarrow as pa
2222
import pytest
2323

24+
import bigframes._config
25+
2426
# Make sure SettingWithCopyWarning is ignored if it exists.
2527
# It was removed in pandas 3.0.
2628
if hasattr(pd.errors, "SettingWithCopyWarning"):
@@ -52,6 +54,7 @@ def default_doctest_imports(doctest_namespace, polars_session_or_bpd):
5254
doctest_namespace["pd"] = pd
5355
doctest_namespace["pa"] = pa
5456
doctest_namespace["bpd"] = polars_session_or_bpd
57+
bigframes._config.options.display.progress_bar = None
5558

5659
# TODO(tswast): Consider setting the numpy printoptions here for better
5760
# compatibility across numpy versions.

third_party/bigframes_vendored/pandas/io/gbq.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def read_gbq(
7272
7373
Preserve ordering in a query input.
7474
75-
>>> bpd.options.display.progress_bar = None
7675
>>> df = bpd.read_gbq('''
7776
... SELECT
7877
... -- Instead of an ORDER BY clause on the query, use
@@ -87,11 +86,9 @@ def read_gbq(
8786
... WHERE year = 2016
8887
... GROUP BY pitcherFirstName, pitcherLastName
8988
... ''', index_col="rowindex")
90-
>>> print("START_OF_OUTPUT"); df.head(2) # doctest: +ELLIPSIS,+NORMALIZE_WHITESPACE
91-
START_OF_OUTPUT
92-
...
89+
>>> df.head(2)
9390
pitcherFirstName pitcherLastName averagePitchSpeed
94-
...
91+
rowindex
9592
1 Albertin Chapman 96.514113
9693
2 Zachary Britton 94.591039
9794
<BLANKLINE>

0 commit comments

Comments
 (0)