Source: pyregion
Version: 2.0-7
Severity: important
Tags: patch

Hi,

I recently uploaded the latest version of astropy (3.2.1) to unstable.
This version breaks the test in a few reverse dependencies. The cause
here is that astropy.tests.pytest_plugins does not exist any longer.

Please consider applying the attached patch to fix this.

Thank you!

Best

Ole


From: Ole Streicher <oleb...@debian.org>
Date: Tue, 16 Jul 2019 20:43:41 +0200
Subject: Fix import failure from astropy.tests on astropy 3.2

---
 pyregion/conftest.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyregion/conftest.py b/pyregion/conftest.py
index 10db893..ca1cd69 100644
--- a/pyregion/conftest.py
+++ b/pyregion/conftest.py
@@ -2,7 +2,8 @@
 # by importing them here in conftest.py they are discoverable by py.test
 # no matter how it is invoked within the source tree.
 
-from astropy.tests.pytest_plugins import *
+from astropy.tests.helper import enable_deprecations_as_exceptions
+from astropy.tests.plugins.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS
 
 # Uncomment the following line to treat all DeprecationWarnings as exceptions
 enable_deprecations_as_exceptions()

Reply via email to