Skip to content

Patch ip test#2808

Merged
abidlabs merged 3 commits into
mainfrom
patch-ip-test
Dec 13, 2022
Merged

Patch ip test#2808
abidlabs merged 3 commits into
mainfrom
patch-ip-test

Conversation

@abidlabs
Copy link
Copy Markdown
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

Comment thread test/test_utils.py
try: # check whether ip is valid
ipaddress.ip_address(ip)
except ValueError:
self.fail("Invalid IP address")
Copy link
Copy Markdown
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
Copy Markdown
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 requested a review from aliabid94 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
Copy Markdown
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.

2 participants