Skip to content
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

Patch ip test #2808

Merged
merged 3 commits into from
Dec 13, 2022
Merged

Patch ip test #2808

merged 3 commits into from
Dec 13, 2022

Conversation

abidlabs
Copy link
Member

test/test_utils.py::TestIPAddress::test_get_ip was failing: https://app.circleci.com/pipelines/github/gradio-app/gradio/7552/workflows/f81e5b0e-a644-4680-ab8c-8c49c1457089/jobs/16668

This patches the test

try: # check whether ip is valid
ipaddress.ip_address(ip)
except ValueError:
self.fail("Invalid IP address")
Copy link
Member Author

Choose a reason for hiding this comment

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

self.fail() was the old unittest-based way of doing it. It's not necessary so I've removed it

@github-actions
Copy link
Contributor

All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-2808-all-demos

@abidlabs abidlabs marked this pull request as ready for review December 13, 2022 21:33
@abidlabs abidlabs merged commit b492212 into main Dec 13, 2022
@abidlabs abidlabs deleted the patch-ip-test branch December 13, 2022 23:15
@abidlabs
Copy link
Member Author

Thanks for reviewing @aliabid94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants