File: ignore_deprecation_keyring

package info (click to toggle)
astroquery 0.3.9%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,220 kB
  • sloc: xml: 113,675; python: 31,588; makefile: 137; ansic: 88; sh: 46
file content (13 lines) | stat: -rw-r--r-- 575 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Author: Vincent Prat <vinceprat@free.fr>
Description: Ignore DeprecationWarning raised by the keyring module
--- a/astroquery/conftest.py
+++ b/astroquery/conftest.py
@@ -34,7 +34,7 @@
 import astropy
 if int(astropy.__version__[0]) > 1:
     # The warnings_to_ignore_by_pyver parameter was added in astropy 2.0
-    enable_deprecations_as_exceptions(modules_to_ignore_on_import=['requests'])
+    enable_deprecations_as_exceptions(modules_to_ignore_on_import=['keyring', 'requests'])
 
 # This is to figure out the affiliated package version, rather than
 # using Astropy's