We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c644df8 commit 84c96e1Copy full SHA for 84c96e1
tests/benchmark/read_gbq_colab/filter_output.py
@@ -14,7 +14,6 @@
14
import pathlib
15
16
import benchmark.utils as utils
17
-import pytest
18
19
import bigframes.session
20
@@ -40,11 +39,8 @@ def filter_output(
40
39
41
# It's possible we don't have any pages at all, since we filtered out all
42
# matching rows.
43
- if rows == 0:
44
- with pytest.raises(StopIteration):
45
- next(iter(df_filtered.to_pandas_batches(page_size=PAGE_SIZE)))
46
- else:
47
+ first_page = next(iter(df_filtered.to_pandas_batches(page_size=PAGE_SIZE)))
+ assert len(first_page.index) <= rows
48
49
50
if __name__ == "__main__":
0 commit comments