From a312f720bc5c4dcb8c4b0a8f34b3d5ad1c3ae1a0 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Thu, 12 Jan 2017 11:54:25 +0000 Subject: [PATCH] Fix default value for remote_data option Pull request: https://github.com/astropy/astropy/pull/5689 Gbp-Pq: Name Fix-default-value-for-remote_data-option.patch --- astropy/tests/runner.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/astropy/tests/runner.py b/astropy/tests/runner.py index cf11c2f..6f1e6b4 100644 --- a/astropy/tests/runner.py +++ b/astropy/tests/runner.py @@ -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' -- 2.30.2