File: Don-t-test-for-deprecation-warning.patch

package info (click to toggle)
astroquery 0.4.11%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,584 kB
  • sloc: python: 53,596; xml: 36,604; makefile: 140; ansic: 69
file content (34 lines) | stat: -rw-r--r-- 1,467 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
25
26
27
28
29
30
31
32
33
34
From: Ole Streicher <olebole@debian.org>
Date: Thu, 29 Aug 2024 12:40:09 +0200
Subject: Don't test for deprecation warning

---
 astroquery/mocserver/tests/test_deprecation.py | 1 +
 setup.cfg                                      | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/astroquery/mocserver/tests/test_deprecation.py b/astroquery/mocserver/tests/test_deprecation.py
index 3fc65eb..5f70bb1 100644
--- a/astroquery/mocserver/tests/test_deprecation.py
+++ b/astroquery/mocserver/tests/test_deprecation.py
@@ -2,6 +2,7 @@ import pytest
 from astropy.utils.exceptions import AstropyDeprecationWarning
 
 
+@pytest.mark.skip(reason="Deprecation warning is disabled on Debian")
 def test_raises_deprecation_warning():
     with pytest.raises(
         AstropyDeprecationWarning,
diff --git a/setup.cfg b/setup.cfg
index 4bdbf27..fc10bc8 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -54,7 +54,7 @@ filterwarnings =
     ignore: 'locale.getdefaultlocale' is deprecated and slated for removal:DeprecationWarning
 #   These are temporary measures, all of these should be fixed:
 #   -----------------------------------------------------------
-    ignore:distutils Version classes are deprecated:DeprecationWarning
+    ignore::DeprecationWarning
 # Upstream issues in many packages, not clear whether we can do anything about these in astroquery
     ignore:unclosed <socket.socket:ResourceWarning
     ignore:unclosed <ssl.SSLSocket:ResourceWarning