[python-dtcwt] 04/09: Add patch fixing an FTBFS error in the testsuite. File: Fix-usage-of-unsafe-inplace-casting.patch

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Jan 27 17:37:41 UTC 2016


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

ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.

commit ad67af30e3ee181ea28f0bfe16d1310d61ac78a6
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Jan 27 15:48:00 2016 +0000

    Add patch fixing an FTBFS error in the testsuite.
    File: Fix-usage-of-unsafe-inplace-casting.patch
---
 .../Fix-usage-of-unsafe-inplace-casting.patch      | 23 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/Fix-usage-of-unsafe-inplace-casting.patch b/debian/patches/Fix-usage-of-unsafe-inplace-casting.patch
new file mode 100644
index 0000000..a24ed69
--- /dev/null
+++ b/debian/patches/Fix-usage-of-unsafe-inplace-casting.patch
@@ -0,0 +1,23 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Wed, 27 Jan 2016 15:47:19 +0000
+Subject: Fix usage of unsafe inplace casting.
+
+---
+ tests/testxfm3.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/testxfm3.py b/tests/testxfm3.py
+index 850736b..39be6e3 100644
+--- a/tests/testxfm3.py
++++ b/tests/testxfm3.py
+@@ -16,8 +16,8 @@ def setup():
+     grid = slice(-(GRID_SIZE>>1), (GRID_SIZE>>1))
+     X, Y, Z = np.mgrid[grid,grid,grid]
+ 
+-    Y *= 1.2
+-    Z *= 1.4
++    Y = Y * 1.2
++    Z = Z * 1.4
+ 
+     r = np.sqrt(X*X + Y*Y + Z*Z)
+     ellipsoid = np.where(r <= SPHERE_RAD, 1.0, 0.0).astype(np.float64)
diff --git a/debian/patches/series b/debian/patches/series
index afdd7ac..5197669 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 use-system-mathjax.patch
 reproducible-build.patch
+Fix-usage-of-unsafe-inplace-casting.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list