File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,17 @@ def pytest_configure(config):
25
25
26
26
27
27
def pytest_collection_modifyitems (config , items ):
28
- with open (
29
- "keras/src/backend/openvino/excluded_concrete_tests.txt" , "r"
30
- ) as file :
31
- openvino_skipped_tests = file .readlines ()
32
- # it is necessary to check if stripped line is not empty
33
- # and exclude such lines
34
- openvino_skipped_tests = [
35
- line .strip () for line in openvino_skipped_tests if line .strip ()
36
- ]
28
+ openvino_skipped_tests = []
29
+ if backend () == "openvino" :
30
+ with open (
31
+ "keras/src/backend/openvino/excluded_concrete_tests.txt" , "r"
32
+ ) as file :
33
+ openvino_skipped_tests = file .readlines ()
34
+ # it is necessary to check if stripped line is not empty
35
+ # and exclude such lines
36
+ openvino_skipped_tests = [
37
+ line .strip () for line in openvino_skipped_tests if line .strip ()
38
+ ]
37
39
38
40
requires_trainable_backend = pytest .mark .skipif (
39
41
backend () == "numpy" or backend () == "openvino" ,
You can’t perform that action at this time.
0 commit comments