8000 Deprecate disable_internet. by anntzer · Pull Request #13783 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
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
0