
import warnings
from astropy.utils.exceptions import AstropyDeprecationWarning

try:
    from pytest_astropy_header.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS
except ImportError:
    PYTEST_HEADER_MODULES = {}
    TESTED_VERSIONS = {}

warnings.warn('The astropy.tests.plugins.display plugin has been deprecated. '
              'See the pytest-astropy documentation for information on '
              'migrating to using pytest-astropy to customize the pytest '
              'header.', AstropyDeprecationWarning)


import warnings
from astropy.utils.exceptions import AstropyDeprecationWarning

try:
    from pytest_astropy_header.display import (PYTEST_HEADER_MODULES,
                                               TESTED_VERSIONS)
except ImportError:
    PYTEST_HEADER_MODULES = {}
    TESTED_VERSIONS = {}

warnings.warn('The astropy.tests.plugins.display plugin has been deprecated. '
              'See the pytest-astropy-header documentation for information on '
              'migrating to using pytest-astropy-header to customize the '
              'pytest header.', AstropyDeprecationWarning)

Fix typo in deprecation warning
TST: Fix typo in deprecation warning [ci skip]

  
  import warnings
  from astropy.utils.exceptions import AstropyDeprecationWarning
  
  try:
-     from pytest_astropy_header.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS
+     from pytest_astropy_header.display import (PYTEST_HEADER_MODULES,
+                                                TESTED_VERSIONS)
  except ImportError:
      PYTEST_HEADER_MODULES = {}
      TESTED_VERSIONS = {}
  
  warnings.warn('The astropy.tests.plugins.display plugin has been deprecated. '
-               'See the pytest-astropy documentation for information on '
+               'See the pytest-astropy-header documentation for information on '
-               'migrating to using pytest-astropy to customize the pytest '
+               'migrating to using pytest-astropy-header to customize the '
-               'header.', AstropyDeprecationWarning)
+               'pytest header.', AstropyDeprecationWarning)
  
Fix typo in deprecation warning
## Code Before:

import warnings
from astropy.utils.exceptions import AstropyDeprecationWarning

try:
    from pytest_astropy_header.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS
except ImportError:
    PYTEST_HEADER_MODULES = {}
    TESTED_VERSIONS = {}

warnings.warn('The astropy.tests.plugins.display plugin has been deprecated. '
              'See the pytest-astropy documentation for information on '
              'migrating to using pytest-astropy to customize the pytest '
              'header.', AstropyDeprecationWarning)

## Instruction:
Fix typo in deprecation warning
## Code After:

import warnings
from astropy.utils.exceptions import AstropyDeprecationWarning

try:
    from pytest_astropy_header.display import (PYTEST_HEADER_MODULES,
                                               TESTED_VERSIONS)
except ImportError:
    PYTEST_HEADER_MODULES = {}
    TESTED_VERSIONS = {}

warnings.warn('The astropy.tests.plugins.display plugin has been deprecated. '
              'See the pytest-astropy-header documentation for information on '
              'migrating to using pytest-astropy-header to customize the '
              'pytest header.', AstropyDeprecationWarning)
