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

Skip to content

Commit 8d3e817

Browse files
authored
Merge pull request #13783 from anntzer/remotedata
Deprecate disable_internet.
2 parents 6376425 + d9dc9d0 commit 8d3e817

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Deprecations
2+
````````````
3+
4+
The ``matplotlib.testing.disable_internet`` module is deprecated. Use (for
5+
example) pytest-remotedata_ instead.
6+
7+
.. _pytest-remotedata: https://pypi.org/project/pytest-remotedata/

doc/api/testing_api.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,6 @@
3030
:show-inheritance:
3131

3232

33-
:mod:`matplotlib.testing.disable_internet`
34-
==========================================
35-
36-
.. automodule:: matplotlib.testing.disable_internet
37-
:members:
38-
:undoc-members:
39-
:show-inheritance:
40-
41-
4233
:mod:`matplotlib.testing.exceptions`
4334
====================================
4435

lib/matplotlib/testing/disable_internet.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
import contextlib
55
import socket
66

7+
from matplotlib import cbook
8+
cbook.warn_deprecated("3.2", name=__name__, obj_type="module",
9+
alternative="pytest-remotedata")
10+
711
# save original socket method for restoration
812
# These are global so that re-calling the turn_off_internet function doesn't
913
# overwrite them again

0 commit comments

Comments
 (0)