mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-28 16:17:38 -07:00
25 lines
902 B
Diff
25 lines
902 B
Diff
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()
|