Skip to content

Commit f34aba9

Browse files
committed
test: use dynamic imports for third_party tests
1 parent fbadd19 commit f34aba9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/system/small/test_dataframe.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6301,8 +6301,12 @@ def test_agg_with_dict_containing_non_existing_col_raise_key_error(scalars_dfs):
63016301
def test_empty_agg_projection_succeeds():
63026302
# Tests that the compiler generates a SELECT 1 fallback for empty aggregations,
63036303
# protecting against BigQuery syntax errors when both groups and metrics are empty.
6304-
import third_party.bigframes_vendored.ibis.backends.sql.compilers.bigquery as bq
6305-
import third_party.bigframes_vendored.sqlglot as sg
6304+
import importlib
6305+
6306+
bq = importlib.import_module(
6307+
"third_party.bigframes_vendored.ibis.backends.sql.compilers.bigquery"
6308+
)
6309+
sg = importlib.import_module("third_party.bigframes_vendored.sqlglot")
63066310

63076311
compiler = bq.BigQueryCompiler()
63086312
res = compiler.visit_Aggregate(

0 commit comments

Comments
 (0)