GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bug: revises Exception type (#1994) · chenhance/python-bigquery@e7e0fcf

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • google/cloud/bigquery/job
    • base.py
  • tests/unit
    • test_job_retry.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎google/cloud/bigquery/job/base.py‎

Copy file name to clipboardExpand all lines: google/cloud/bigquery/job/base.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"notImplemented": http.client.NOT_IMPLEMENTED,
5050
"policyViolation": http.client.FORBIDDEN,
5151
"quotaExceeded": http.client.FORBIDDEN,
52-
"rateLimitExceeded": http.client.FORBIDDEN,
52+
"rateLimitExceeded": http.client.TOO_MANY_REQUESTS,
5353
"resourceInUse": http.client.BAD_REQUEST,
5454
"resourcesExceeded": http.client.BAD_REQUEST,
5555
"responseTooLarge": http.client.FORBIDDEN,
Collapse file

‎tests/unit/test_job_retry.py‎

Copy file name to clipboardExpand all lines: tests/unit/test_job_retry.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def api_request(method, path, query_params=None, data=None, **kw):
442442

443443
orig_job_id = job.job_id
444444
job_retry = dict(job_retry=None) if job_retry_on_query == "Result" else {}
445-
with pytest.raises(google.api_core.exceptions.Forbidden):
445+
with pytest.raises(google.api_core.exceptions.TooManyRequests):
446446
job.result(**job_retry)
447447

448448
assert job.job_id == orig_job_id

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.