Skip to content

Commit 8c6a27e

Browse files
committed
Skip test for devs with no numpy
1 parent 065c614 commit 8c6a27e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_pytest_icdiff.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from unittest import mock
33
import pytest
44
import re
5+
import sys
56
from pprintpp import pformat
67

78
YELLOW_ON = '\x1b[1;33m'
@@ -294,6 +295,7 @@ def test_one():
294295
assert "---" in output # context split marker
295296

296297

298+
@pytest.mark.skipif('numpy' not in sys.modules, reason="requires numpy library")
297299
def test_np_arrays_can_use_equals(testdir) -> None:
298300
"""
299301
Numpy iterables will fall back to pytest default output

0 commit comments

Comments
 (0)