[Debian-astro-commits] [python-astropy] 02/04: Fix for known test issue with new numpy

Ole Streicher olebole at moszumanska.debian.org
Sun Feb 14 14:34:23 UTC 2016


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

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

commit 5e3027e8e0f55e7c84120ed69d391d1df0a14edf
Author: Ole Streicher <olebole at debian.org>
Date:   Sun Feb 14 15:02:08 2016 +0100

    Fix for known test issue with new numpy
---
 debian/changelog                         |  1 +
 debian/patches/mark_known_failures.patch | 31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index e5427eb..945144d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ python-astropy (1.1.1-3) UNRELEASED; urgency=medium
 
   * Fix for newer pytest. Closes: #812648
   * Fix for wcslib 5.13
+  * Fix for known test issue with new numpy
 
  -- Ole Streicher <olebole at debian.org>  Sun, 14 Feb 2016 13:24:29 +0100
 
diff --git a/debian/patches/mark_known_failures.patch b/debian/patches/mark_known_failures.patch
index 2e2c82a..dbda27b 100644
--- a/debian/patches/mark_known_failures.patch
+++ b/debian/patches/mark_known_failures.patch
@@ -97,3 +97,34 @@ Description: Mark all known test failures as xfail.
  def test_ignore_warnings():
      t = table.Table([[np.nan, np.nan]])
      with warnings.catch_warnings(record=True) as warns:
+--- a/astropy/coordinates/tests/test_angles.py
++++ b/astropy/coordinates/tests/test_angles.py
+@@ -611,6 +611,8 @@
+     lat[0] = Angle(lon)
+     assert lat.value[0] == 10.0
+ 
++# see https://github.com/astropy/astropy/issues/4548
++ at pytest.mark.xfail()
+ def test_longitude():
+     # Default wrapping at 360d with an array input
+     lon = Longitude(['370d', '88d'])
+--- a/astropy/coordinates/tests/test_representation.py
++++ b/astropy/coordinates/tests/test_representation.py
+@@ -325,6 +325,8 @@
+         with pytest.raises(TypeError) as exc:
+             s = PhysicsSphericalRepresentation()
+ 
++# see https://github.com/astropy/astropy/issues/4548
++    @pytest.mark.xfail()
+     def test_init_quantity(self):
+ 
+         s3 = PhysicsSphericalRepresentation(phi=8 * u.hourangle, theta=5 * u.deg, r=10 * u.kpc)
+@@ -336,6 +338,8 @@
+         assert isinstance(s3.theta, Angle)
+         assert isinstance(s3.r, Distance)
+ 
++# see https://github.com/astropy/astropy/issues/4548
++    @pytest.mark.xfail()
+     def test_init_phitheta(self):
+ 
+         s2 = PhysicsSphericalRepresentation(Angle(8, u.hour),

-- 
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