Skip to content

Simplify test_dot; suppress spurious test outputs - #12388

Merged
crusaderky merged 1 commit into
dask:mainfrom
crusaderky:test-dot
May 13, 2026
Merged

crusaderky merged 1 commit into
dask:mainfrom
crusaderky:test-dot

Conversation

@crusaderky

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread dask/tests/test_dot.py
Comment on lines -19 to -21
pytestmark = pytest.mark.skipif(
True, reason="graphviz exception with Python -OO flag"
)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pytest crashes thanks to -Werror if you run python -OO -m pytest.

Comment thread dask/tests/test_dot.py

try:
from IPython.display import SVG, Image
except ImportError:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ipycythoscape has a hard dependency on ipython

Comment thread dask/tests/test_dot.py
"jpeg",
Image,
marks=pytest.mark.xfail(
reason="jpeg not always supported in dot", strict=False

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a soft assumption that one always uses our conda environments for unit tests. I have not heard of pip packages without jpeg support.

@github-actions

Copy link
Copy Markdown
Contributor

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

     20 files  ±0       20 suites  ±0   4h 43m 41s ⏱️ + 8m 30s
 18 295 tests ±0   17 011 ✅ ±0   1 272 💤 ±0  12 ❌ ±0 
299 528 runs  ±0  257 511 ✅ +3  42 005 💤  - 3  12 ❌ ±0 

For more details on these failures, see this check.

Results for commit 646ef16. ± Comparison against base commit b40345d.

@crusaderky
crusaderky merged commit 6569eb4 into dask:main May 13, 2026
27 of 28 checks passed
@crusaderky
crusaderky deleted the test-dot branch May 13, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant