Skip to content

Commit 588a30f

Browse files
committed
fix doc
1 parent ccfa16c commit 588a30f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

_unittests/ut_xrun_doc/test_documentation_recipes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,16 @@ def add_test_methods(cls):
7373
this = os.path.abspath(os.path.dirname(__file__))
7474
fold = os.path.normpath(os.path.join(this, "..", "..", "_doc", "recipes"))
7575
found = os.listdir(fold)
76+
has_dot = int(os.environ.get("UNITTEST_DOT", "0"))
7677
for name in found:
7778
if not name.endswith(".py") or not name.startswith("plot_"):
7879
continue
7980
reason = None
8081

8182
if not reason and not has_torch("4.7"):
8283
reason = "torch<2.7"
84+
if not reason and not has_dot and name in {"plot_dump_intermediate_results.py"}:
85+
reason = "dot not installed"
8386

8487
if reason:
8588

_unittests/ut_xrun_doc/test_documentation_technical.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,7 @@ def add_test_methods(cls):
7373
if not name.endswith(".py") or not name.startswith("plot_"):
7474
continue
7575
reason = None
76-
if (
77-
not reason
78-
and not has_dot
79-
and name
80-
in {"plot_layer_norm_discrepancies.py", "plot_dump_intermediate_results.py"}
81-
):
76+
if not reason and not has_dot and name in {"plot_layer_norm_discrepancies.py"}:
8277
reason = "dot not installed"
8378

8479
if reason:

0 commit comments

Comments
 (0)