[Debian-astro-commits] [python-astropy] 01/03: Fix default value for remote_data option

Ole Streicher olebole at moszumanska.debian.org
Sat Jan 14 10:48:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch debian
in repository python-astropy.

commit cc48261bbd3d0c28c362b0171199d7f66eff5fb3
Author: Ole Streicher <olebole at debian.org>
Date:   Sat Jan 14 11:27:13 2017 +0100

    Fix default value for remote_data option
---
 .../Fix-default-value-for-remote_data-option.patch | 34 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 35 insertions(+)

diff --git a/debian/patches/Fix-default-value-for-remote_data-option.patch b/debian/patches/Fix-default-value-for-remote_data-option.patch
new file mode 100644
index 0000000..7251ef0
--- /dev/null
+++ b/debian/patches/Fix-default-value-for-remote_data-option.patch
@@ -0,0 +1,34 @@
+From: Thomas Robitaille <thomas.robitaille at gmail.com>
+Date: Thu, 12 Jan 2017 11:54:25 +0000
+Subject: Fix default value for remote_data option
+
+---
+ 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'
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 87d4632..a96427d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ only_python3-binaries.patch
 mark_known_failures.patch
 Ensure-NUMPY_LT_1_12-works-for-beta-prerelease.patch
 external_python_pkgs.patch
+Fix-default-value-for-remote_data-option.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/python-astropy.git



More information about the Debian-astro-commits mailing list