Skip to content

Commit

Permalink
Merge pull request #13783 from anntzer/remotedata
Browse files Browse the repository at this point in the history
Deprecate disable_internet.
  • Loading branch information
timhoffm committed Jul 27, 2019
2 parents 6376425 + d9dc9d0 commit 8d3e817
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
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

0 comments on commit 8d3e817

Please sign in to comment.