[med-svn] [python-mne] 01/02: up_check_numpy to skip a test for warnings being issued with older numpys
Yaroslav Halchenko
debian at onerussian.com
Tue Dec 5 14:05:39 UTC 2017
This is an automated email from the git hooks/post-receive script.
yoh pushed a commit to branch master
in repository python-mne.
commit 114b85b46974b16ac62e124bbc3b834cec91845f
Author: Yaroslav Halchenko <debian at onerussian.com>
Date: Mon Dec 4 22:58:05 2017 -0500
up_check_numpy to skip a test for warnings being issued with older numpys
---
debian/changelog | 7 +++++++
debian/patches/series | 1 +
debian/patches/up_check_numpy | 21 +++++++++++++++++++++
3 files changed, 29 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index ddd4f6e..5f56cbb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-mne (0.15.2+dfsg-2) unstable; urgency=medium
+
+ * up_check_numpy to skip a test for warnings being issued with
+ older numpys
+
+ -- Yaroslav Halchenko <debian at onerussian.com> Mon, 04 Dec 2017 22:57:35 -0500
+
python-mne (0.15.2+dfsg-1) unstable; urgency=medium
* New upstream release (Closes: #858909)
diff --git a/debian/patches/series b/debian/patches/series
index 8eefc1c..cef11f1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ up_tempita_unicode
up_skip_test_requires_data
deb_skip_segfaultingtests
deb_paths
+up_check_numpy
diff --git a/debian/patches/up_check_numpy b/debian/patches/up_check_numpy
new file mode 100644
index 0000000..fca2c23
--- /dev/null
+++ b/debian/patches/up_check_numpy
@@ -0,0 +1,21 @@
+--- a/mne/decoding/tests/test_receptive_field.py
++++ b/mne/decoding/tests/test_receptive_field.py
+@@ -10,7 +10,7 @@ import numpy as np
+ from numpy.testing import assert_array_equal, assert_allclose
+
+ from mne import io, pick_types
+-from mne.utils import requires_version, run_tests_if_main
++from mne.utils import requires_version, run_tests_if_main, check_version
+ from mne.decoding import ReceptiveField, TimeDelayingRidge
+ from mne.decoding.receptive_field import (_delay_time_series, _SCORERS,
+ _times_to_delays, _delays_to_slice)
+@@ -519,6 +519,9 @@ def test_inverse_coef():
+ rf = ReceptiveField(tmin, tmax, 1., estimator=estimator, patterns=True)
+ with warnings.catch_warnings(record=True) as w:
+ rf.fit(y, X)
++ # For some reason there is no warning
++ if estimator and not check_version('numpy', '1.13'):
++ continue
+ assert_equal(len(w), 1)
+ assert_true(any(x in str(w[0].message).lower()
+ for x in ('singular', 'scipy.linalg.solve')),
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-mne.git
More information about the debian-med-commit
mailing list