1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
From: Ole Streicher <olebole@debian.org>
Date: Thu, 20 Feb 2020 20:38:38 +0100
Subject: Weaken or ignore tests that fail in future
Closes: #1078611
---
astropy/time/tests/test_ut1.py | 2 +-
astropy/utils/iers/tests/test_iers.py | 2 ++
astropy/utils/iers/tests/test_leap_second.py | 4 +---
pyproject.toml | 2 ++
4 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/astropy/time/tests/test_ut1.py b/astropy/time/tests/test_ut1.py
index 30ea668..82afdb3 100644
--- a/astropy/time/tests/test_ut1.py
+++ b/astropy/time/tests/test_ut1.py
@@ -140,7 +140,7 @@ class TestTimeUT1:
class TestTimeUT1SpecificIERSTable:
- @pytest.mark.skipif(not HAS_IERS_A, reason="requires IERS_A")
+ @pytest.mark.skip(reason="requires actual IERS_A")
def test_ut1_iers_A(self):
do_ut1_prediction_tst(iers.IERS_A)
diff --git a/astropy/utils/iers/tests/test_iers.py b/astropy/utils/iers/tests/test_iers.py
index b1cd263..9366280 100644
--- a/astropy/utils/iers/tests/test_iers.py
+++ b/astropy/utils/iers/tests/test_iers.py
@@ -204,6 +204,7 @@ class TestIERS_A:
def teardown_class(self):
iers.IERS_A.close()
+ @pytest.mark.skip(reason="requires actual IERS_A")
def test_simple(self):
"""Test that open() by default reads a 'finals2000A.all' file."""
# Ensure we remove any cached table (gh-5131).
@@ -461,6 +462,7 @@ def test_iers_b_dl():
iers.IERS_B.close()
+@pytest.mark.skip(reason="requires actual IERS_B")
def test_iers_b_out_of_range_handling():
# The following error/warning applies only to IERS_B, not to the default IERS_Auto
with iers.earth_orientation_table.set(iers.IERS_B.open()):
diff --git a/astropy/utils/iers/tests/test_leap_second.py b/astropy/utils/iers/tests/test_leap_second.py
index 7d94be3..2af78bf 100644
--- a/astropy/utils/iers/tests/test_leap_second.py
+++ b/astropy/utils/iers/tests/test_leap_second.py
@@ -227,9 +227,7 @@ class TestDefaultAutoOpen:
def setup_method(self):
# Identical to what is used in LeapSeconds.auto_open().
- self.good_enough = iers.LeapSeconds._today() + TimeDelta(
- 180 - iers._none_to_float(iers.conf.auto_max_age), format="jd"
- )
+ self.good_enough = Time.now()
self._auto_open_files = iers.LeapSeconds._auto_open_files.copy()
def teardown_method(self):
diff --git a/pyproject.toml b/pyproject.toml
index 3db6cdb..8f8b0f0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -219,6 +219,8 @@ xfail_strict = false
filterwarnings = [
"error",
"ignore::DeprecationWarning",
+ "ignore::astropy.utils.iers.iers.IERSStaleWarning",
+ "ignore::erfa.core.ErfaWarning",
"ignore:unclosed <socket:ResourceWarning",
"ignore:unclosed <ssl.SSLSocket:ResourceWarning",
"ignore:matplotlibrc text\\.usetex:UserWarning:matplotlib",
|