Skip to content

Commit 853c150

Browse files
committed
disable test using matplotlib
1 parent 35d88a9 commit 853c150

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

_unittests/ut_xrun_doc/test_command_lines_exe.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import unittest
33
from contextlib import redirect_stdout
44
from io import StringIO
5+
import torch
56
from onnx_diagnostic.ext_test_case import ExtTestCase, ignore_warnings
67
from onnx_diagnostic._command_lines_parser import main
78
from onnx_diagnostic.helpers.log_helper import enumerate_csv_files
@@ -23,6 +24,9 @@ def test_a_parser_print(self):
2324
text = st.getvalue()
2425
self.assertIn("Add", text)
2526

27+
@unittest.skipIf(
28+
torch.__version__.startswith("2.9.0"), "Possibly one issue with matplotlib."
29+
)
2630
def test_b_parser_stats(self):
2731
output = self.get_dump_file("test_parser_stats.xlsx")
2832
st = StringIO()
@@ -68,6 +72,9 @@ def test_f_parser_validate(self):
6872
self.assertIn("model_clas", text)
6973

7074
@ignore_warnings(UserWarning)
75+
@unittest.skipIf(
76+
torch.__version__.startswith("2.9.0"), "Possibly one issue with matplotlib."
77+
)
7178
def test_g_parser_agg(self):
7279
path = os.path.abspath(
7380
os.path.join(os.path.dirname(__file__), "..", "ut_helpers", "data")

_unittests/ut_xrun_doc/test_documentation_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def add_test_methods(cls):
131131
}:
132132
reason = "too long"
133133

134-
if not reason and torch.__version__ == "2.9.0":
134+
if not reason and torch.__version__.startswith("2.9.0"):
135135
reason = "examples are failing for on CI for 2.9.0"
136136

137137
if reason:

_unittests/ut_xrun_doc/test_documentation_technical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def add_test_methods(cls):
7777
if not reason and not has_dot and name in {"plot_layer_norm_discrepancies.py"}:
7878
reason = "dot not installed"
7979

80-
if not reason and torch.__version__ == "2.9.0":
80+
if not reason and torch.__version__.startswith("2.9.0"):
8181
reason = "examples are failing for on CI for 2.9.0"
8282

8383
if reason:

0 commit comments

Comments
 (0)