Skip to content

Enhance tests verifying custom COMObjects raise errors.#929

Merged
junkmd merged 2 commits intoenthought:mainfrom
junkmd:error_custom_comobj
Feb 21, 2026
Merged

Enhance tests verifying custom COMObjects raise errors.#929
junkmd merged 2 commits intoenthought:mainfrom
junkmd:error_custom_comobj

Conversation

@junkmd
Copy link
Collaborator

@junkmd junkmd commented Feb 21, 2026

This pull request introduces comprehensive testing for error reporting within custom COM object implementations, ensuring that ReportError correctly propagates COMError with precise details.

This ensures that the framework's error reporting mechanisms are reliable across various custom COM scenarios.

- Add `Test_CustomImplementation` to `test_comobject.py`.
- Verify that `ReportError` correctly raises `COMError` with expected `hresult`
  and `details` for custom `COMObject` methods.
@junkmd junkmd added this to the 1.4.16 milestone Feb 21, 2026
@junkmd junkmd added the tests enhance or fix tests label Feb 21, 2026
@codecov
Copy link

codecov bot commented Feb 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.47%. Comparing base (9c5791b) to head (2492adb).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #929      +/-   ##
==========================================
+ Coverage   88.43%   88.47%   +0.03%     
==========================================
  Files         139      139              
  Lines       13549    13575      +26     
==========================================
+ Hits        11982    12010      +28     
+ Misses       1567     1565       -2     

☔ 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 258da0e into enthought:main Feb 21, 2026
52 checks passed
@junkmd junkmd deleted the error_custom_comobj branch February 21, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests enhance or fix tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant