Skip to content

Commit 1983675

Browse files
authored
test(bigquery): check the correct exception for missing tables (#10137)
1 parent 0c49e3b commit 1983675

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ibis/backends/bigquery/tests/system/test_connect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from google.cloud import bigquery_storage_v1 as bqstorage
1212

1313
import ibis
14+
import ibis.common.exceptions as exc
1415

1516

1617
def test_repeated_project_name(project_id, credentials):
@@ -230,7 +231,7 @@ def test_client_with_regional_endpoints(project_id, credentials, dataset_id):
230231
)
231232

232233
# Fails because dataset not in Tokyo.
233-
with pytest.raises(gexc.NotFound, match=dataset_id):
234+
with pytest.raises(exc.TableNotFound, match=dataset_id):
234235
tokyo_con.table(f"{dataset_id}.functional_alltypes")
235236

236237
# Succeeds because dataset is in Tokyo.

0 commit comments

Comments
 (0)