Shorten message to compare for recent h5py.
authorOle Streicher <olebole@debian.org>
Mon, 11 Sep 2017 13:36:05 +0000 (15:36 +0200)
committerOle Streicher <olebole@debian.org>
Tue, 5 Dec 2017 10:16:34 +0000 (10:16 +0000)
See https://github.com/astropy/astropy/issues/6534

Gbp-Pq: Name Shorten-message-to-compare-for-recent-h5py.patch

astropy/io/misc/tests/test_hdf5.py

index 1b8c6637c492d21381e57a7c32c54f7929b97108..bbc4b2a70c3e663aca1a04ecb559bc72336e665e 100644 (file)
@@ -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')