ihji commented on code in PR #17774:
URL: https://github.com/apache/beam/pull/17774#discussion_r883942242


##########
sdks/python/apache_beam/io/gcp/bigquery_test.py:
##########
@@ -858,19 +858,19 @@ class 
BigQueryStreamingInsertsErrorHandling(unittest.TestCase):
   # to determine error types and messages to try for retriables.
   @parameterized.expand([
       param(
-          exception_type=exceptions.Forbidden,
+          exception_type=exceptions.Forbidden if exceptions else None,
           error_reason='rateLimitExceeded'),
       param(
-          exception_type=exceptions.DeadlineExceeded,
+          exception_type=exceptions.DeadlineExceeded if exceptions else None,
           error_reason='somereason'),
       param(
-          exception_type=exceptions.ServiceUnavailable,
+          exception_type=exceptions.ServiceUnavailable if exceptions else None,
           error_reason='backendError'),
       param(
-          exception_type=exceptions.InternalServerError,
+          exception_type=exceptions.InternalServerError if exceptions else 
None,
           error_reason='internalError'),
       param(
-          exception_type=exceptions.InternalServerError,
+          exception_type=exceptions.InternalServerError if exceptions else 
None,

Review Comment:
   it's already there: 
https://github.com/apache/beam/blob/541dfb38105b2453665f9d16f2423456f043168d/sdks/python/apache_beam/io/gcp/bigquery_test.py#L851
   
   this pr fixes the error thrown even when the test is marked as skipped.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to