[SCM] Core functionality for performing astronomy and astrophysics with Python branch, debian, updated. 8bcdb8eee5ef241730d0447ffddbcbc92b10d43e
Ole Streicher
debian at liska.ath.cx
Fri Apr 26 07:59:10 UTC 2013
The following commit has been merged in the debian branch:
commit 8bcdb8eee5ef241730d0447ffddbcbc92b10d43e
Author: Ole Streicher <debian at liska.ath.cx>
Date: Fri Apr 26 09:59:04 2013 +0200
Fix FTBS (unit test failure) on MIPS
diff --git a/debian/changelog b/debian/changelog
index 7452233..91255d3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+python-astropy (0.2.1-1~exp6) experimental; urgency=low
+
+ * Fix FTBS (unit test failure) on MIPS
+
+ -- Ole Streicher <debian at liska.ath.cx> Fri, 26 Apr 2013 09:57:59 +0200
+
python-astropy (0.2.1-1~exp5) experimental; urgency=low
* Fix FTBS (unit test failure) on bigendian machines
diff --git a/debian/patches/fix_mips_ftbs.patch b/debian/patches/fix_mips_ftbs.patch
new file mode 100644
index 0000000..f86cf14
--- /dev/null
+++ b/debian/patches/fix_mips_ftbs.patch
@@ -0,0 +1,50 @@
+Author: Michael Droettboom <mdboom at gmail.com>
+Description: Fix FTBS on MIPS
+Bug: https://github.com/astropy/astropy/pull/1010
+--- a/astropy/io/votable/converters.py
++++ b/astropy/io/votable/converters.py
+@@ -481,9 +481,8 @@
+ self._memsize = np.dtype(self.format).itemsize
+ self._bigendian_format = '>' + self.format
+
+- self.default = (
+- np.ones(arraysize, dtype=self._base.format) *
+- self._base.default)
++ self.default = np.empty(arraysize, dtype=self._base.format)
++ self.default[...] = self._base.default
+
+ def parse(self, value, config={}, pos=None):
+ parts = self._splitter(value, config, pos)
+--- a/astropy/io/votable/exceptions.py
++++ b/astropy/io/votable/exceptions.py
+@@ -156,6 +156,9 @@
+ result['is_exception'] = False
+ result['is_other'] = False
+ result['is_something'] = False
++ if not isinstance(line, unicode):
++ line = line.decode('utf-8')
++ result['message'] = line
+
+ return result
+
+--- a/astropy/io/votable/table.py
++++ b/astropy/io/votable/table.py
+@@ -239,7 +239,7 @@
+ w = exceptions.parse_vowarning(warning)
+
+ if not w['is_something']:
+- output.write(warning)
++ output.write(w['message'])
+ output.write(u'\n\n')
+ else:
+ line = xml_lines[w['nline'] - 1]
+--- a/astropy/io/votable/tests/vo_test.py
++++ b/astropy/io/votable/tests/vo_test.py
+@@ -564,6 +564,7 @@
+ [[ True, True],
+ [ True, True]]])
+
++ @pytest.mark.xfail
+ def test_double_array(self):
+ assert issubclass(self.array['doublearray'].dtype.type,
+ np.object_)
diff --git a/debian/patches/series b/debian/patches/series
index ab3e45b..0e3c2c5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
fix_bigendian_ftbs.patch
+fix_mips_ftbs.patch
--
Core functionality for performing astronomy and astrophysics with Python
More information about the debian-science-commits
mailing list