mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-06 12:30:29 +08:00
parent
c126e62970
commit
b492212c02
@ -10,7 +10,7 @@ No changes to highlight.
|
||||
No changes to highlight.
|
||||
|
||||
## Testing and Infrastructure Changes:
|
||||
No changes to highlight.
|
||||
* Fixed test for IP address by [@abidlabs](https://github.com/abidlabs) in [PR 2808](https://github.com/gradio-app/gradio/pull/2808)
|
||||
|
||||
## Breaking Changes:
|
||||
No changes to highlight.
|
||||
|
@ -107,10 +107,7 @@ class TestIPAddress:
|
||||
ip = get_local_ip_address()
|
||||
if ip == "No internet connection":
|
||||
return
|
||||
try: # check whether ip is valid
|
||||
ipaddress.ip_address(ip)
|
||||
except ValueError:
|
||||
self.fail("Invalid IP address")
|
||||
ipaddress.ip_address(ip)
|
||||
|
||||
@mock.patch("requests.get")
|
||||
def test_get_ip_without_internet(self, mock_get):
|
||||
|
Loading…
x
Reference in New Issue
Block a user