[med-svn] [python-mne] 04/06: Patched a decorator for a test that uses mayavi.

Yaroslav Halchenko debian at onerussian.com
Fri Nov 27 17:21:36 UTC 2015


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

yoh pushed a commit to branch master
in repository python-mne.

commit b5a317d90c129c842d3e79f72e4ba4cfd2c4fc51
Author: jaeilepp <jaeilepp at student.jyu.fi>
Date:   Thu Nov 26 04:21:50 2015 -0500

    Patched a decorator for a test that uses mayavi.
---
 debian/patches/fix_test | 22 ++++++++++++++++++++++
 debian/patches/series   |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/fix_test b/debian/patches/fix_test
new file mode 100644
index 0000000..ceb0fea
--- /dev/null
+++ b/debian/patches/fix_test
@@ -0,0 +1,22 @@
+Description: Changed test decorator to skip if mayavi not installed.
+
+--- python-mne-0.10.1+dfsg.orig/mne/tests/test_surface.py
++++ python-mne-0.10.1+dfsg/mne/tests/test_surface.py
+@@ -13,7 +13,7 @@ from mne import read_surface, write_surf
+ from mne.surface import (read_morph_map, _compute_nearest,
+                          fast_cross_3d, get_head_surf, read_curvature,
+                          get_meg_helmet_surf)
+-from mne.utils import _TempDir, requires_tvtk, run_tests_if_main, slow_test
++from mne.utils import _TempDir, requires_mayavi, run_tests_if_main, slow_test
+ from mne.io import read_info
+ from mne.transforms import _get_mri_head_t
+ 
+@@ -145,7 +145,7 @@ def test_read_curv():
+     assert_true(np.logical_or(bin_curv == 0, bin_curv == 1).all())
+ 
+ 
+- at requires_tvtk
++ at requires_mayavi
+ def test_decimate_surface():
+     """Test triangular surface decimation
+     """
diff --git a/debian/patches/series b/debian/patches/series
index d34bb93..f005122 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 changeset_9c7ef6d10f1f767b742525ea31e42a65a0469327.diff
 paths
+fix_test

-- 
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