Skip to content

Commit f6f7dc9

Browse files
author
Matti Remes
committed
remove unsupported gbq exception and replace with a generic one
1 parent 8791c49 commit f6f7dc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas_gbq/tests/test_gbq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ def test_upload_data_with_invalid_user_schema_raises_error(self):
14471447
{'name': 'C', 'type': 'FLOAT'},
14481448
{'name': 'D', 'type': 'FLOAT'}]
14491449
destination_table = self.destination_table + test_id
1450-
with tm.assertRaises(gbq.StreamingInsertError):
1450+
with tm.assertRaises(gbq.GenericGBQException):
14511451
gbq.to_gbq(df, destination_table, _get_project_id(),
14521452
private_key=_get_private_key_path(),
14531453
table_schema=test_schema)
@@ -1459,7 +1459,7 @@ def test_upload_data_with_missing_schema_fields_raises_error(self):
14591459
{'name': 'B', 'type': 'FLOAT'},
14601460
{'name': 'C', 'type': 'FLOAT'}]
14611461
destination_table = self.destination_table + test_id
1462-
with tm.assertRaises(gbq.StreamingInsertError):
1462+
with tm.assertRaises(gbq.GenericGBQException):
14631463
gbq.to_gbq(df, destination_table, _get_project_id(),
14641464
private_key=_get_private_key_path(),
14651465
table_schema=test_schema)

0 commit comments

Comments
 (0)