Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Deprecate disable_internet. #13783

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 1 commit into from
Jul 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions doc/api/next_api_changes/2019-03-29-AL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Deprecations
````````````

The ``matplotlib.testing.disable_internet`` module is deprecated. Use (for
example) pytest-remotedata_ instead.

.. _pytest-remotedata: https://pypi.org/project/pytest-remotedata/
9 changes: 0 additions & 9 deletions doc/api/testing_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,6 @@
:show-inheritance:


:mod:`matplotlib.testing.disable_internet`
==========================================

.. automodule:: matplotlib.testing.disable_internet
:members:
:undoc-members:
:show-inheritance:


:mod:`matplotlib.testing.exceptions`
====================================

Expand Down
4 changes: 4 additions & 0 deletions lib/matplotlib/testing/disable_internet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import contextlib
import socket

from matplotlib import cbook
cbook.warn_deprecated("3.2", name=__name__, obj_type="module",
alternative="pytest-remotedata")

# save original socket method for restoration
# These are global so that re-calling the turn_off_internet function doesn't
# overwrite them again
Expand Down