[Python-modules-commits] [biggus] 03/09: created a patch for numpy

André Honeiser anmaho-guest at moszumanska.debian.org
Tue Jul 25 15:44:30 UTC 2017


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

anmaho-guest pushed a commit to branch debian/master
in repository biggus.

commit d5afff466b5f6d9c8100564cc652e89269c9968a
Author: André Honeiser <anmaho at gmx.net>
Date:   Mon Jul 24 19:15:08 2017 +0200

    created a patch for numpy
---
 ...atch-Name-fix-double-ellipsis-tests.patch.patch | 46 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 47 insertions(+)

diff --git a/debian/patches/0001-Patch-Name-fix-double-ellipsis-tests.patch.patch b/debian/patches/0001-Patch-Name-fix-double-ellipsis-tests.patch.patch
new file mode 100644
index 0000000..b072d94
--- /dev/null
+++ b/debian/patches/0001-Patch-Name-fix-double-ellipsis-tests.patch.patch
@@ -0,0 +1,46 @@
+From: =?utf-8?q?Andr=C3=A9_Honeiser?= <anmaho at gmx.net>
+Date: Mon, 24 Jul 2017 19:10:12 +0200
+Subject: Patch-Name: fix-double-ellipsis-tests.patch
+
+---
+ biggus/tests/unit/init/test__full_keys.py | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/biggus/tests/unit/init/test__full_keys.py b/biggus/tests/unit/init/test__full_keys.py
+index 9e95ff6..d8c937f 100644
+--- a/biggus/tests/unit/init/test__full_keys.py
++++ b/biggus/tests/unit/init/test__full_keys.py
+@@ -19,6 +19,9 @@
+ from __future__ import absolute_import, division, print_function
+ from six.moves import (filter, input, map, range, zip)  # noqa
+ 
++# import LooseVersion to check numpy Version in unittests
++from distutils.verion import LooseVersion
++
+ import unittest
+ 
+ import numpy as np
+@@ -60,10 +63,14 @@ class Test__full_keys(unittest.TestCase):
+         self.assertFullSlice((1, Ellipsis), 2,
+                              [1, slice(None)])
+ 
++    @unittest.skipIf(np.__version__ >= LooseVersion('1.12.0'),
++                     'NumPy 1.12.0 does not support double ellipsis')
+     def test_double_ellipsis(self):
+         self.assertFullSlice((1, Ellipsis, 1, Ellipsis), 4,
+                              [1, slice(None), 1, slice(None)])
+ 
++    @unittest.skipIf(np.__version__ >= LooseVersion('1.12.0'),
++                     'NumPy 1.12.0 does not support double ellipsis')
+     def test_double_ellipsis_new_axis(self):
+         self.assertFullSlice((1, Ellipsis, 1, np.newaxis, Ellipsis), 4,
+                              [1, slice(None), 1, None, slice(None)])
+@@ -81,6 +88,8 @@ class Test__full_keys(unittest.TestCase):
+         self.assertFullSlice((np.newaxis, Ellipsis, None, np.newaxis), 2,
+                              [None, slice(None), slice(None), None, None])
+ 
++    @unittest.skipIf(np.__version__ >= LooseVersion('1.12.0'),
++                     'NumPy 1.12.0 does not support double ellipsis')
+     def test_redundant_ellipsis(self):
+         keys = (slice(None), Ellipsis, 0, Ellipsis, slice(None))
+         self.assertFullSlice(keys, 4,
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2819853
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Patch-Name-fix-double-ellipsis-tests.patch.patch

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



More information about the Python-modules-commits mailing list