[Debian-astro-commits] [python-astropy] 02/03: Work around old version of HDF5 error message

Leo Singer lsinger-guest at moszumanska.debian.org
Wed Mar 22 18:03:04 UTC 2017


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

lsinger-guest pushed a commit to branch debian/jessie-backports
in repository python-astropy.

commit e8a172e647b14b12a7b50f292d95c11b0e35a1cd
Author: Leo Singer <leo.singer at ligo.org>
Date:   Wed Mar 22 13:20:55 2017 -0400

    Work around old version of HDF5 error message
---
 debian/changelog                            |  1 +
 debian/patches/old_hdf5_error_message.patch | 21 +++++++++++++++++++++
 debian/patches/series                       |  1 +
 3 files changed, 23 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 01e2ddb..bed2ec1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ python-astropy (1.2.1-1~bpo8+3) UNRELEASED; urgency=medium
 
   * Add build dependencies on python*-h5py and python*-yaml in
     order to run additional unit tests.
+  * Work around old version of HDF5 error message
 
  -- Leo Singer <leo.singer at ligo.org>  Wed, 22 Mar 2017 13:13:19 -0400
 
diff --git a/debian/patches/old_hdf5_error_message.patch b/debian/patches/old_hdf5_error_message.patch
new file mode 100644
index 0000000..8737d35
--- /dev/null
+++ b/debian/patches/old_hdf5_error_message.patch
@@ -0,0 +1,21 @@
+From: Leo Singer <leo.singer at ligo.org>
+Date: Wed, 22 Mar 2017 13:19:03 -0400
+Subject: Work around old version of HDF5 error message
+
+---
+ astropy/io/misc/tests/test_hdf5.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/astropy/io/misc/tests/test_hdf5.py b/astropy/io/misc/tests/test_hdf5.py
+index b3c56ee..5aef719 100644
+--- a/astropy/io/misc/tests/test_hdf5.py
++++ b/astropy/io/misc/tests/test_hdf5.py
+@@ -413,7 +413,7 @@ def test_metadata_too_large(tmpdir):
+     assert len(w) == 1
+     assert str(w[0].message).startswith(
+         "Attributes could not be written to the output HDF5 "
+-        "file: Unable to create attribute (Object header message is too large)")
++        "file: unable to create attribute")
+ 
+ 
+ @pytest.mark.skipif('not HAS_H5PY')
diff --git a/debian/patches/series b/debian/patches/series
index 7b0f25c..7151e75 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ mark_known_failures.patch
 disable_helper.patch
 fix_for_cfitsio_3380.patch
 only_python3-binaries.patch
+old_hdf5_error_message.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