Fix default value for remote_data option
authorThomas Robitaille <thomas.robitaille@gmail.com>
Thu, 12 Jan 2017 11:54:25 +0000 (11:54 +0000)
committerOle Streicher <olebole@debian.org>
Wed, 25 Jan 2017 15:17:26 +0000 (15:17 +0000)
Pull request: https://github.com/astropy/astropy/pull/5689

Gbp-Pq: Name Fix-default-value-for-remote_data-option.patch

astropy/tests/runner.py

index cf11c2fa0f568998d4402e952bb384ebc28a7a6d..6f1e6b477def95bf05a4af93099483f77e16b5c1 100644 (file)
@@ -353,7 +353,7 @@ class TestRunner(TestRunnerBase):
 
         return []
 
-    @keyword()
+    @keyword(default_value='none')
     def remote_data(self, remote_data, kwargs):
         """
         remote_data : {'none', 'astropy', 'any'}, optional
@@ -369,9 +369,10 @@ class TestRunner(TestRunnerBase):
             remote_data = 'none'
         elif remote_data not in ('none', 'astropy', 'any'):
             warnings.warn("The remote_data option should be one of "
-                          "none/astropy/any. For backward-compatibility, "
+                          "none/astropy/any (found {0}). For backward-compatibility, "
                           "assuming 'any', but you should change the option to be "
-                          "one of the supported ones to avoid issues in future.",
+                          "one of the supported ones to avoid issues in "
+                          "future.".format(remote_data),
                           AstropyDeprecationWarning)
             remote_data = 'any'