Skip to content

Commit 06036ab

Browse files
alimcmaster1Kevin D Smith
authored and
Kevin D Smith
committed
Use https for network checks (pandas-dev#36480)
1 parent 69f34df commit 06036ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/_testing.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2403,7 +2403,7 @@ def can_connect(url, error_classes=None):
24032403
@optional_args
24042404
def network(
24052405
t,
2406-
url="http://www.google.com",
2406+
url="https://www.google.com",
24072407
raise_on_error=_RAISE_NETWORK_ERROR_DEFAULT,
24082408
check_before_test=False,
24092409
error_classes=None,
@@ -2427,7 +2427,7 @@ def network(
24272427
The test requiring network connectivity.
24282428
url : path
24292429
The url to test via ``pandas.io.common.urlopen`` to check
2430-
for connectivity. Defaults to 'http://www.google.com'.
2430+
for connectivity. Defaults to 'https://www.google.com'.
24312431
raise_on_error : bool
24322432
If True, never catches errors.
24332433
check_before_test : bool
@@ -2471,7 +2471,7 @@ def network(
24712471
24722472
You can specify alternative URLs::
24732473
2474-
>>> @network("http://www.yahoo.com")
2474+
>>> @network("https://www.yahoo.com")
24752475
... def test_something_with_yahoo():
24762476
... raise IOError("Failure Message")
24772477
>>> test_something_with_yahoo()

0 commit comments

Comments
 (0)