File: Ignore-Astropy-warnings.patch

package info (click to toggle)
sunpy 7.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,252 kB
  • sloc: python: 40,837; ansic: 1,710; makefile: 36
file content (24 lines) | stat: -rw-r--r-- 762 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Ole Streicher <olebole@debian.org>
Date: Sat, 3 Feb 2024 17:00:04 +0100
Subject: Ignore Astropy warnings

These warnings are mainly created on outdated IERS data, which can be
ignored on packages in stable.

Closes: #1055892
---
 pytest.ini | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pytest.ini b/pytest.ini
index 1080213..df3d558 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -49,6 +49,7 @@ filterwarnings =
     # Turn all warnings into errors so they do not pass silently.
     error
     ignore::DeprecationWarning
+    ignore::astropy.utils.exceptions.AstropyWarning
     # Do not fail on pytest config issues (i.e. missing plugins) but do show them
     always::pytest.PytestConfigWarning
     # Ignore all divide-by-zero and all-nan warnings