B
    q\                 @   sL   d Z ddlmZ ddlmZ ede yddlT W n ek
rF   Y nX dS )a;  
This is retained only for backwards compatibility. Affiliated packages
should no longer import ``disable_internet`` from ``astropy.tests``. It is
now available from ``pytest_remotedata``. However, this is not the
recommended mechanism for controlling access to remote data in tests.
Instead, packages should make use of decorators provided by the
pytest_remotedata plugin: - ``@pytest.mark.remote_data`` for tests that
require remote data access - ``@pytest.mark.internet_off`` for tests that
should only run when remote data access is disabled.  Remote data access for
the test suite is controlled by the ``--remote-data`` command line flag. This
is either passed to ``pytest`` directly or to the ``setup.py test`` command.

TODO: This module should eventually be removed once backwards compatibility
is no longer supported.
    )warn)AstropyDeprecationWarninga(  The ``disable_internet`` module is no longer provided by astropy. It is now available as ``pytest_remotedata.disable_internet``. However, developers are encouraged to avoid using this module directly. See <https://docs.astropy.org/en/latest/whatsnew/3.0.html#pytest-plugins> for more information.)*N)__doc__warningsr   Zastropy.utils.exceptionsr   Z"pytest_remotedata.disable_internetImportError r   r   =lib/python3.7/site-packages/astropy/tests/disable_internet.py<module>   s   