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 0155e08..a7524af 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -50,7 +50,7 @@ filterwarnings =
# -----------------------------------------------------------
ignore:distutils Version classes are deprecated:DeprecationWarning
# Remove along with astropy-helpers, once we switch to a new versioning scheme
- ignore:Use setlocale: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
|