File: Don-t-turn-deprecation-warnings-into-errors.patch

package info (click to toggle)
specutils 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,460 kB
  • sloc: python: 13,497; makefile: 111
file content (23 lines) | stat: -rw-r--r-- 796 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
From: Ole Streicher <olebole@debian.org>
Date: Thu, 24 Feb 2022 21:01:01 +0100
Subject: Don't turn deprecation warnings into errors

Taken from https://github.com/astropy/astropy/pull/9767
TST: Ignore remaining matplotlib warnings on Debian
---
 setup.cfg | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/setup.cfg b/setup.cfg
index 5c0dd07..5d29bd9 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -73,6 +73,8 @@ asdf_schema_root = specutils/io/asdf/schemas
 asdf_schema_tests_enabled = true
 filterwarnings =
     error
+    ignore::DeprecationWarning
+    ignore::astropy.utils.exceptions.AstropyDeprecationWarning
     ignore:distutils Version classes are deprecated:DeprecationWarning
     ignore:numpy\.ndarray size changed:RuntimeWarning
     ignore:numpy\.ufunc size changed:RuntimeWarning