[theano] 01/01: add fix-test_fit_int64-for-python3-32bit.patch
Daniel Stender
stender at moszumanska.debian.org
Mon Feb 13 23:16:24 UTC 2017
This is an automated email from the git hooks/post-receive script.
stender pushed a commit to branch master
in repository theano.
commit 2c770df748edc6b53fbcb1060dc1879b0b85d731
Author: Daniel Stender <stender at debian.org>
Date: Mon Feb 13 23:54:27 2017 +0100
add fix-test_fit_int64-for-python3-32bit.patch
---
debian/changelog | 8 ++++++++
.../fix-test_fit_int64-for-python3-32bit.patch | 21 +++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 4 ----
4 files changed, 30 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b7404c2..53af059 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+theano (0.8.2-5~exp1) experimental; urgency=medium
+
+ * add fix-test_fit_int64-for-python3-32bit.patch (Closes: #831540)
+ [thanks to Rebecca N. Palmer].
+ * deb/rules: remove test failsafes completely.
+
+ -- Daniel Stender <stender at debian.org> Mon, 13 Feb 2017 23:53:19 +0100
+
theano (0.8.2-4) unstable; urgency=medium
* add fixes-for-numpy-1.12.patch (Closes: #848764) [thanks to
diff --git a/debian/patches/fix-test_fit_int64-for-python3-32bit.patch b/debian/patches/fix-test_fit_int64-for-python3-32bit.patch
new file mode 100644
index 0000000..46425d1
--- /dev/null
+++ b/debian/patches/fix-test_fit_int64-for-python3-32bit.patch
@@ -0,0 +1,21 @@
+Description: fix for the tests passing on python3 on i386
+Bug-Debian: https://bugs.debian.org/831540
+Forwarded: https://github.com/Theano/Theano/issues/5498
+Author: Rebecca N. Palmer <rebecca_palmer at zoho.com>
+
+--- a/theano/tensor/tests/test_basic.py
++++ b/theano/tensor/tests/test_basic.py
+@@ -6672,11 +6672,11 @@
+ assert scalar_ct.value == val
+
+ vector_ct = constant([val, val])
+- assert vector_ct.dtype == 'int64'
++ assert vector_ct.dtype in ('int32','int64')
+ assert numpy.all(vector_ct.value == val)
+
+ matrix_ct = constant([[val, val]])
+- assert matrix_ct.dtype == 'int64'
++ assert matrix_ct.dtype in ('int32','int64')
+ assert numpy.all(matrix_ct.value == val)
+
+ def test_too_big(self):
diff --git a/debian/patches/series b/debian/patches/series
index 2f48947..5428688 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
fixes-for-numpy-1.12.patch
strip-docs.patch
+fix-test_fit_int64-for-python3-32bit.patch
diff --git a/debian/rules b/debian/rules
index 3e0c8e1..522e1cf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,11 +17,7 @@ override_dh_auto_install:
export THEANO_FLAGS=base_compiledir='.pybuild',device=cpu
override_dh_auto_test:
-ifneq (,$(filter i386 s390x,$(DEB_BUILD_ARCH)))
- PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS='PYTHONPATH=. {interpreter} bin/theano-nose -v' dh_auto_test || true
-else
PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS='PYTHONPATH=. {interpreter} bin/theano-nose -v' dh_auto_test
-endif
override_dh_installdocs:
dh_installdocs -A README.txt
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/theano.git
More information about the debian-science-commits
mailing list