Skip to content

Commit 8b3d167

Browse files
committed
perf(sqlalchemy-bigquery): exclude unsupported OLTP compliance test suites
1 parent 4e7252b commit 8b3d167

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

packages/sqlalchemy-bigquery/tests/sqlalchemy_dialect_compliance/test_dialect_compliance.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,3 +643,16 @@ def test_no_results_for_non_returning_insert(cls):
643643
del (
644644
WindowFunctionTest.test_window_rows_between
645645
) # test expects BQ to return sorted results
646+
647+
# Deleting compliance suites for features BigQuery (OLAP) explicitly does not support:
648+
try:
649+
from sqlalchemy.testing.suite import IsolationLevelTest
650+
del IsolationLevelTest # BigQuery does not support transaction isolation levels
651+
except ImportError:
652+
pass
653+
654+
try:
655+
from sqlalchemy.testing.suite import TransactionTest
656+
del TransactionTest # BigQuery does not support savepoints/transaction isolation
657+
except ImportError:
658+
pass

0 commit comments

Comments
 (0)