Skip to content

Commit 7b45cf6

Browse files
committed
Use pytest.skip to skip testing
1 parent 2e6757f commit 7b45cf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numcodecs/tests/test_zfpy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import unittest
1+
import pytest
22

33

44
import numpy as np
@@ -8,7 +8,7 @@
88
# noinspection PyProtectedMember
99
from numcodecs.zfpy import ZFPY, _zfpy
1010
except ImportError: # pragma: no cover
11-
raise unittest.SkipTest("ZFPY not available")
11+
pytest.skip("ZFPY not available", allow_module_level=True)
1212

1313

1414
from numcodecs.tests.common import (check_encode_decode_array, check_config, check_repr,

0 commit comments

Comments
 (0)