1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Yaroslav Halchenko <debian@onerussian.com>
Subject: BF: use numpy.testing.SkipTest instead of unittest.SkipTest
For some (not yet 100% clear reason) raising unittest.SkipTest caused an error
instead of a test being skipped while building the Debian package with nose
1.3.7-4
--- neo.orig/neo/test/iotest/common_io_test.py
+++ neo/neo/test/iotest/common_io_test.py
@@ -22,6 +22,8 @@
import unittest
import pathlib
+from numpy.testing import SkipTest
+
from neo.core import Block, Segment
from neo.io.basefromrawio import BaseFromRaw
from neo.test.tools import assert_same_sub_schema, assert_neo_object_is_compliant, assert_sub_schema_is_lazy_loaded
@@ -126,7 +128,7 @@
cls.files_to_test = [cls.get_local_path(e) for e in cls.entities_to_test]
else:
cls.files_to_test = []
- raise unittest.SkipTest("Requires datalad download of data from the web")
+ raise SkipTest("Requires datalad download of data from the web")
@classmethod
def able_to_write_or_read(cls, writeread=False, readwrite=False):
|