Skip to content

Commit a257b3f

Browse files
committed
Check numpy version
1 parent d4577d3 commit a257b3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bpython/test/test_inspection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ def test_getfuncprops_print(self):
129129
self.assertEqual(props.argspec.kwonly_defaults["file"], "sys.stdout")
130130
self.assertEqual(props.argspec.kwonly_defaults["flush"], "False")
131131

132-
@unittest.skipUnless(numpy is not None, "requires numpy")
132+
@unittest.skipUnless(
133+
numpy is not None and numpy.__version__ >= "1.18",
134+
"requires numpy >= 1.18",
135+
)
133136
def test_getfuncprops_numpy_array(self):
134137
props = inspection.getfuncprops("array", numpy.array)
135138

0 commit comments

Comments
 (0)