[python-arrayfire] 02/07: Patch buggy standalone tests module.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Fri Sep 16 09:58:38 UTC 2016


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

ghisvail-guest pushed a commit to branch debian/master
in repository python-arrayfire.

commit de3f9ce474ca3cf97d073a7a704188938761847d
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Fri Sep 16 09:57:03 2016 +0100

    Patch buggy standalone tests module.
---
 debian/patches/Fix-standalone-tests-module.patch | 56 ++++++++++++++++++++++++
 debian/patches/series                            |  1 +
 2 files changed, 57 insertions(+)

diff --git a/debian/patches/Fix-standalone-tests-module.patch b/debian/patches/Fix-standalone-tests-module.patch
new file mode 100644
index 0000000..295e388
--- /dev/null
+++ b/debian/patches/Fix-standalone-tests-module.patch
@@ -0,0 +1,56 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Fri, 16 Sep 2016 09:56:01 +0100
+Subject: Fix standalone tests module.
+
+---
+ tests/__init__.py     | 8 ++++++++
+ tests/__main__.py     | 4 +++-
+ tests/simple_tests.py | 4 +++-
+ 3 files changed, 14 insertions(+), 2 deletions(-)
+ create mode 100644 tests/__init__.py
+
+diff --git a/tests/__init__.py b/tests/__init__.py
+new file mode 100644
+index 0000000..be76698
+--- /dev/null
++++ b/tests/__init__.py
+@@ -0,0 +1,8 @@
++#######################################################
++# Copyright (c) 2015, ArrayFire
++# All rights reserved.
++#
++# This file is distributed under 3-clause BSD license.
++# The complete license agreement can be obtained at:
++# http://arrayfire.com/licenses/BSD-3-Clause
++########################################################
+diff --git a/tests/__main__.py b/tests/__main__.py
+index 5b1e473..4683965 100644
+--- a/tests/__main__.py
++++ b/tests/__main__.py
+@@ -7,8 +7,10 @@
+ # http://arrayfire.com/licenses/BSD-3-Clause
+ ########################################################
+ 
++from __future__ import absolute_import
++
+ import sys
+-from simple_tests import *
++from .simple_tests import *
+ 
+ tests = {}
+ tests['simple'] = simple.tests
+diff --git a/tests/simple_tests.py b/tests/simple_tests.py
+index 370b162..603ae9f 100755
+--- a/tests/simple_tests.py
++++ b/tests/simple_tests.py
+@@ -9,7 +9,9 @@
+ # http://arrayfire.com/licenses/BSD-3-Clause
+ ########################################################
+ 
+-import simple
++from __future__ import absolute_import
++
++from . import simple
+ import sys
+ 
+ if __name__ == "__main__":
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d83ee3e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Fix-standalone-tests-module.patch

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



More information about the debian-science-commits mailing list