[python-astropy] 01/01: Mark known failures

Ole Streicher olebole-guest at moszumanska.debian.org
Wed May 14 13:46:52 UTC 2014


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

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

commit 904218d102f4b455a1ee24ba58d6cf1df0511823
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Wed May 14 15:01:07 2014 +0200

    Mark known failures
---
 debian/changelog                         |  7 +++
 debian/patches/mark_known_failures.patch | 90 ++++++++++++++++++++++++++++++++
 debian/patches/series                    |  1 +
 3 files changed, 98 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index e895d39..be94a8e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-astropy (0.3.2-2) unstable; urgency=low
+
+  * Mark known failures as xfail.
+  * Change maintainer and VCS location to debian-astro
+
+ -- Ole Streicher <debian at liska.ath.cx>  Wed, 14 May 2014 14:47:35 +0200
+
 python-astropy (0.3.2-1) unstable; urgency=low
 
   * New upstream version. Closes: #743554
diff --git a/debian/patches/mark_known_failures.patch b/debian/patches/mark_known_failures.patch
new file mode 100644
index 0000000..05febcf
--- /dev/null
+++ b/debian/patches/mark_known_failures.patch
@@ -0,0 +1,90 @@
+--- a/astropy/coordinates/tests/test_transformations.py
++++ b/astropy/coordinates/tests/test_transformations.py
+@@ -319,6 +319,9 @@
+             icrs_50.dec.degree != icrs_75.dec.degree)
+ 
+ 
++# See https://github.com/astropy/astropy/issues/2171
++# powerpc, s390x
++ at pytest.mark.xfail
+ def test_composite_static_matrix_transform():
+     """
+     Checks to make sure that CompositeStaticMatrixTransform 
+--- a/astropy/io/fits/tests/test_checksum.py
++++ b/astropy/io/fits/tests/test_checksum.py
+@@ -41,6 +41,9 @@
+         hdul = fits.open(self.data('checksum.fits'), checksum=True)
+         hdul.close()
+ 
++    # See https://github.com/astropy/astropy/issues/2171
++    # fails on 32 bit platforms
++    @pytest.mark.xfail
+     def test_image_create(self):
+         n = np.arange(100)
+         hdu = fits.PrimaryHDU(n)
+@@ -56,6 +59,9 @@
+                 assert hdul[0].header['CHECKSUM'] == 'ZHMkeGKjZGKjbGKj'
+                 assert hdul[0].header['DATASUM'] == '4950'
+ 
++    # See https://github.com/astropy/astropy/issues/2171
++    # fails on 32 bit platforms
++    @pytest.mark.xfail
+     def test_nonstandard_checksum(self):
+         hdu = fits.PrimaryHDU(np.arange(10.0 ** 6))
+         hdu.writeto(self.temp('tmp.fits'), clobber=True,
+--- a/astropy/io/fits/tests/test_connect.py
++++ b/astropy/io/fits/tests/test_connect.py
+@@ -104,6 +104,9 @@
+         # assert np.all(t1['b'].mask == t2['b'].mask)
+         # assert np.all(t1['c'].mask == t2['c'].mask)
+ 
++    # see https://github.com/astropy/astropy/issues/1849
++    # Fails on powerpc, s390
++    @pytest.mark.xfail
+     def test_read_from_fileobj(self, tmpdir):
+         filename = str(tmpdir.join('test_read_from_fileobj.fits'))
+         hdu = BinTableHDU(self.data)
+@@ -140,6 +143,9 @@
+     def setup_method(self, method):
+         warnings.filterwarnings('always')
+ 
++    # see https://github.com/astropy/astropy/issues/1849
++    # Fails on powerpc, s390
++    @pytest.mark.xfail
+     def test_read(self, tmpdir):
+         filename = str(tmpdir.join('test_read.fits'))
+         self.hdus.writeto(filename)
+@@ -157,6 +163,9 @@
+         assert exc.value.args[0] == 'No table found in hdu=0'
+ 
+     @pytest.mark.parametrize('hdu', [1, 'first'])
++    # see https://github.com/astropy/astropy/issues/1849
++    # Fails on powerpc, s390
++    @pytest.mark.xfail
+     def test_read_with_hdu_1(self, tmpdir, hdu):
+         filename = str(tmpdir.join('test_read_with_hdu_1.fits'))
+         self.hdus.writeto(filename)
+--- a/astropy/wcs/tests/test_wcs.py
++++ b/astropy/wcs/tests/test_wcs.py
+@@ -451,6 +451,9 @@
+         run()
+ 
+ 
++# see https://github.com/astropy/astropy/issues/2482
++# fails with wcslib-4.23 on all platforms
++ at pytest.mark.xfail
+ def test_to_header_string():
+     header_string = """
+     WCSAXES =                    2 / Number of coordinate axes                      CRPIX1  =                    0 / Pixel coordinate of reference point            CRPIX2  =                    0 / Pixel coordinate of reference point            CDELT1  =                    1 / Coordinate increment at reference point        CDELT2  =                    1 / Coordinate increment at reference point        CRVAL1  =                    0 / Coordinate value at reference point            CRVAL2  [...]
+--- a/astropy/wcs/tests/test_wcsprm.py
++++ b/astropy/wcs/tests/test_wcsprm.py
+@@ -637,6 +637,9 @@
+     assert isinstance(w.to_header(), str)
+ 
+ 
++# see https://github.com/astropy/astropy/issues/2482
++# fails with wcslib-4.23 on all platforms
++ at pytest.mark.xfail
+ def test_velangl():
+     w = _wcs.Wcsprm()
+     assert w.velangl == 0.0
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c8093a8
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+mark_known_failures.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-science-commits mailing list