Skip to content

TST: Allow tm.network to catch urllib.error.URLError #45723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 30, 2022

Conversation

mroeschke
Copy link
Member

Addresses these flaky network errors due to external servers: https://github.com/pandas-dev/pandas/runs/4992270675?check_suite_focus=true

    def http_error_default(self, req, fp, code, msg, hdrs):
>       raise HTTPError(req.full_url, code, msg, hdrs, fp)
E       urllib.error.HTTPError: HTTP Error 500: Internal Server Error

Also modifies a condition that just because the test can connect to a "check url" (google) doesn't necessarily mean the test can connect to the target server.

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite IO Network Local or Cloud (AWS, GCS, etc.) IO Issues labels Jan 30, 2022
Copy link
Member

@jbrockmendel jbrockmendel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mroeschke mroeschke added this to the 1.5 milestone Jan 30, 2022
@jreback jreback modified the milestones: 1.5, 1.4.1 Jan 30, 2022
@jreback jreback merged commit 4451392 into pandas-dev:main Jan 30, 2022
@jreback
Copy link
Contributor

jreback commented Jan 30, 2022

@meeseeksdev backport 1.4.x

@lumberbot-app
Copy link

lumberbot-app bot commented Jan 30, 2022

Something went wrong ... Please have a look at my logs.

@mroeschke mroeschke deleted the ref/tmnetwork branch January 31, 2022 01:59
jreback pushed a commit that referenced this pull request Jan 31, 2022
phofl pushed a commit to phofl/pandas that referenced this pull request Feb 14, 2022
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO Network Local or Cloud (AWS, GCS, etc.) IO Issues Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants