[Debian-astro-commits] [python-astropy] 02/02: Fix FTBS on i386. See https://github.com/astropy/astropy/issues/4226

Ole Streicher olebole at moszumanska.debian.org
Thu Oct 8 14:21:43 UTC 2015


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

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

commit 56d0afc96c97c482dc802d4cc1eccdf23ae5ef7c
Author: Ole Streicher <olebole at debian.org>
Date:   Thu Oct 8 15:49:59 2015 +0200

    Fix FTBS on i386. See https://github.com/astropy/astropy/issues/4226
---
 debian/changelog          |  6 ++++++
 debian/patches/4227.patch | 30 ++++++++++++++++++++++++++++++
 debian/patches/series     |  1 +
 3 files changed, 37 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index bbb0372..1c44828 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+python-astropy (1.0.5-2) unstable; urgency=low
+
+  * Fix FTBS on i386
+
+ -- Ole Streicher <olebole at debian.org>  Thu, 08 Oct 2015 15:44:51 +0200
+
 python-astropy (1.0.5-1) unstable; urgency=low
 
   * New upstream version, providing Python-3.5 compatibility. Closes: #800727
diff --git a/debian/patches/4227.patch b/debian/patches/4227.patch
new file mode 100644
index 0000000..4331b9d
--- /dev/null
+++ b/debian/patches/4227.patch
@@ -0,0 +1,30 @@
+From 8476d178c6daebbd2e62156f323e8f53e769ee85 Mon Sep 17 00:00:00 2001
+From: Marten van Kerkwijk <mhvk at astro.utoronto.ca>
+Date: Wed, 7 Oct 2015 09:34:29 -0400
+Subject: [PATCH] Use integer X,Y,Z in test to avoid rounding errors on i386.
+ Closes #4226.
+
+---
+ astropy/coordinates/tests/test_sky_coord.py | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/astropy/coordinates/tests/test_sky_coord.py b/astropy/coordinates/tests/test_sky_coord.py
+index 7b22ff6..3dadc00 100644
+--- a/astropy/coordinates/tests/test_sky_coord.py
++++ b/astropy/coordinates/tests/test_sky_coord.py
+@@ -503,12 +503,12 @@ def test_repr():
+ @pytest.mark.skipif('NUMPY_LT_1_7')
+ def test_repr_altaz():
+     sc2 = SkyCoord(1 * u.deg, 1 * u.deg, frame='icrs', distance=1 * u.kpc)
+-    loc = EarthLocation.from_geodetic(-122*u.deg, -47*u.deg)
++    loc = EarthLocation(-2309223 * u.m, -3695529 * u.m, -4641767 * u.m)
+     time = Time('2005-03-21 00:00:00')
+     sc4 = sc2.transform_to(AltAz(location=loc, obstime=time))
+     assert repr(sc4).startswith("<SkyCoord (AltAz: obstime=2005-03-21 00:00:00.000, "
+-                         "location=(-2309222.664660742, -3695528.7655007695, "
+-                         "-4641764.788820372) m, pressure=0.0 hPa, "
++                         "location=(-2309223.0, -3695529.0, "
++                                "-4641767.0) m, pressure=0.0 hPa, "
+                          "temperature=0.0 deg_C, relative_humidity=0, "
+                          "obswl=1.0 micron): (az, alt, distance) in "
+                          "(deg, deg, m)\n")
diff --git a/debian/patches/series b/debian/patches/series
index 82acab5..6dee456 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 mark_known_failures.patch
 disable_helper.patch
+4227.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