326bf08
diff -Naur astropy/astropy/io/misc/tests/test_hdf5.py astropy.new/astropy/io/misc/tests/test_hdf5.py
326bf08
--- astropy/astropy/io/misc/tests/test_hdf5.py	2017-09-08 16:43:52.000000000 +0200
326bf08
+++ astropy.new/astropy/io/misc/tests/test_hdf5.py	2017-10-08 11:18:36.312982468 +0200
326bf08
@@ -413,7 +413,8 @@
326bf08
     assert len(w) == 1
326bf08
     assert str(w[0].message).startswith(
326bf08
         "Attributes could not be written to the output HDF5 "
326bf08
-        "file: Unable to create attribute (Object header message is too large)")
326bf08
+        "file: Unable to create attribute ")
326bf08
+    assert "bject header message is too large" in str(w[0].message)
326bf08
 
326bf08
 
326bf08
 @pytest.mark.skipif('not HAS_H5PY')