Skip to content

test: skip the blobs2 example, which opens a PDF in the browser - #209

Merged
petercorke merged 1 commit into
mainfrom
fix/examples-test-no-browser
Nov 22, 2026
Merged

petercorke merged 1 commit into
mainfrom
fix/examples-test-no-browser

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Summary

examples/blobs2.py calls blobs.dotfile(show=True), which runs Graphviz dot and opens the resulting PDF in the browser. The examples smoke test (PR 207, merged) ran that example, so a PDF popped up on every local test run.

blobs2.py is now in the smoke test's skip list with that reason, and the special case that skipped it when dot was missing is removed, since it is no longer run. The graph output itself is still covered by the graph and dotfile tests in tests/test_image_blobs.py.

Testing

pytest tests/test_examples_run.py: 7 passed, 7 skipped, and no PDF opened. Not run: CI on Windows or OpenCV 4 (CI will).

This change was written with AI assistance (Claude Code) and the diff has been read by the maintainer.

🤖 Generated with Claude Code

examples/blobs2.py calls dotfile(show=True), which runs Graphviz dot and
opens the PDF with webbrowser. The examples smoke test ran it, so a PDF
appeared on every local test run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit 4eb896c into main Nov 22, 2026
32 checks passed
@petercorke
petercorke deleted the fix/examples-test-no-browser branch November 22, 2026 01:55
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