File tree Expand file tree Collapse file tree 3 files changed +6
-18
lines changed
Expand file tree Collapse file tree 3 files changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,6 @@ exclude = '''
3838python_version = " 3.9"
3939warn_unused_configs = true
4040
41- [[tool .mypy .overrides ]]
42- module = " nose.plugins.skip"
43- ignore_missing_imports = true
44-
4541[build-system ]
4642requires = [" setuptools>=64.0" , " cython>=3" ]
4743build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change 4343# make the output more concise.
4444# __unittest = 1
4545
46-
4746import functools
4847import inspect
48+ from unittest .case import SkipTest
4949
5050TEST_PREFIX = "test"
5151
@@ -100,12 +100,7 @@ def disabled(func_or_class):
100100 def decorate_func (func ):
101101 @functools .wraps (func )
102102 def wrapper (* args , ** kwargs ):
103- try :
104- from nose .plugins .skip import SkipTest
105- except ImportError :
106- return None # do nothing, the test will show up as passed
107- else :
108- raise SkipTest
103+ raise SkipTest
109104
110105 return wrapper
111106
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15+ from unittest .case import SkipTest
16+
1517from qcore .asserts import assert_eq , assert_is , AssertRaises
1618from qcore .testing import (
1719 Anything ,
@@ -48,13 +50,8 @@ def test_GreaterEq():
4850
4951
5052def _check_disabled (fn ):
51- try :
52- from nose .plugins .skip import SkipTest
53- except ImportError :
54- assert_is (None , fn ())
55- else :
56- with AssertRaises (SkipTest ):
57- fn ()
53+ with AssertRaises (SkipTest ):
54+ fn ()
5855
5956
6057def test_disabled ():
You can’t perform that action at this time.
0 commit comments