Skip to content

Suppress unwanted log output in logutil tests and refactor DBWIN capture.#928

Merged
junkmd merged 4 commits intoenthought:mainfrom
junkmd:fix_logutil
Feb 17, 2026
Merged

Suppress unwanted log output in logutil tests and refactor DBWIN capture.#928
junkmd merged 4 commits intoenthought:mainfrom
junkmd:fix_logutil

Conversation

@junkmd
Copy link
Collaborator

@junkmd junkmd commented Feb 17, 2026

CI logs were cluttered with unintended log messages leaking from logutil tests.

This PR suppresses log output during tests to keep CI logs clean, and refactors the DBWIN channel capture code to improve readability.

…solation.

- Use direct `logging.Logger()` instantiation in `test_emit`.
  - Bypasses global registration to ensure test isolation.
- Disable logger propagation for test `Logger` instances.
  - Sets `logger.propagate = False` to prevent interference from other handlers.
…test_logutil.py`.

Improves modularity and readability of the debug string capturing logic.
@junkmd junkmd added this to the 1.4.16 milestone Feb 17, 2026
@junkmd junkmd added tests enhance or fix tests ci labels Feb 17, 2026
@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.43%. Comparing base (4eb1b9d) to head (20baa78).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #928   +/-   ##
=======================================
  Coverage   88.43%   88.43%           
=======================================
  Files         139      139           
  Lines       13546    13549    +3     
=======================================
+ Hits        11979    11982    +3     
  Misses       1567     1567           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@junkmd junkmd merged commit 9c5791b into enthought:main Feb 17, 2026
139 of 150 checks passed
@junkmd junkmd deleted the fix_logutil branch February 17, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci tests enhance or fix tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments