File: Suppress-IERS-max_age-error-in-test.patch

package info (click to toggle)
sunpy 6.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 11,556 kB
  • sloc: python: 39,355; ansic: 1,714; makefile: 36
file content (21 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Ole Streicher <olebole@debian.org>
Date: Tue, 26 Nov 2024 09:03:56 +0100
Subject: Suppress IERS max_age error in test

---
 sunpy/coordinates/tests/test_sun.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sunpy/coordinates/tests/test_sun.py b/sunpy/coordinates/tests/test_sun.py
index 6d9fd84..f3a48f1 100644
--- a/sunpy/coordinates/tests/test_sun.py
+++ b/sunpy/coordinates/tests/test_sun.py
@@ -187,6 +187,8 @@ def test_sky_position(t1, t2):
 @pytest.mark.filterwarnings(r'ignore:\(some\) times are outside of range covered by IERS table')
 def test_print_params():
     # Test only for any issues with printing; accuracy is covered by other tests
+    from astropy.utils.iers import conf
+    conf.auto_max_age = None
     sun.print_params()