summaryrefslogtreecommitdiff
path: root/dev-python/pyfits/files/02-numpy-deprecation-warning.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/pyfits/files/02-numpy-deprecation-warning.patch
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/pyfits/files/02-numpy-deprecation-warning.patch')
-rw-r--r--dev-python/pyfits/files/02-numpy-deprecation-warning.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-python/pyfits/files/02-numpy-deprecation-warning.patch b/dev-python/pyfits/files/02-numpy-deprecation-warning.patch
new file mode 100644
index 000000000000..026e6b829d4d
--- /dev/null
+++ b/dev-python/pyfits/files/02-numpy-deprecation-warning.patch
@@ -0,0 +1,24 @@
+From 90cac05f8a5436a8dd3714ad29e2d81eb8b4d39b Mon Sep 17 00:00:00 2001
+From: Aurelien Jarno <aurelien@aurel32.net>
+Date: Tue, 2 Feb 2016 22:41:09 +0100
+Subject: Avoid DeprecationWarning from Numpy.
+
+Patch-Name: 02-numpy-deprecation-warning.diff
+---
+ pyfits/tests/test_division.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/pyfits/tests/test_division.py b/pyfits/tests/test_division.py
+index da4df72..aa93264 100644
+--- a/pyfits/tests/test_division.py
++++ b/pyfits/tests/test_division.py
+@@ -18,7 +18,8 @@ class TestDivisionFunctions(PyfitsTestCase):
+ a1 = np.rec.array(
+ s,
+ dtype=np.dtype([('c1', '>i4'), ('c2', '|S3'),
+- ('c3', '>f4'), ('c4', '|i1')]))
++ ('c3', '>f4'), ('c4', '|i1')]),
++ shape=len(s) // 12)
+
+ def test_card_with_continue(self):
+ h = fits.PrimaryHDU()