Skip to content

Commit 66edaa6

Browse files
authored
Merge branch 'score-p:master' into instrumenter_file
2 parents 3f11cc0 + 75a3420 commit 66edaa6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

test/test_scorep.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
import re
88
import subprocess
99
import sys
10+
import numpy
11+
12+
13+
def version_tuple(v):
14+
return tuple(map(int, (v.split("."))))
1015

1116

1217
def call(arguments, expected_returncode=0, env=None):
@@ -416,6 +421,10 @@ def test_dummy(scorep_env):
416421

417422

418423
@pytest.mark.skipif(sys.version_info.major < 3, reason="not tested for python 2")
424+
@requires_package("numpy")
425+
@pytest.mark.skipif(version_tuple(numpy.version.version) >= version_tuple("1.22.0"),
426+
reason="There are some changes regarding __array_function__ in 1.22.0,"
427+
"so the test is no longer needed")
419428
@foreach_instrumenter
420429
def test_numpy_dot(scorep_env, instrumenter):
421430
trace_path = get_trace_path(scorep_env)

0 commit comments

Comments
 (0)