Skip to content

test: verify NodeTypeError is catchable as PatchError and TypeError#51

Merged
nathanjmcdougall merged 1 commit into
mainfrom
test/node-type-error-catchable
May 26, 2026
Merged

test: verify NodeTypeError is catchable as PatchError and TypeError#51
nathanjmcdougall merged 1 commit into
mainfrom
test/node-type-error-catchable

Conversation

@nathanjmcdougall
Copy link
Copy Markdown
Collaborator

Closes the test coverage gap noted in doc/todo/node-type-error-diamond-inheritance.md.

The README already documents NodeTypeError's dual inheritance (added in #49). The issubclass checks in TestErrorHierarchy confirm the static type relationship. What was missing: tests that actually raise a NodeTypeError and catch it via each inheritance path.

Two tests added:

  • test_node_type_error_catchable_as_patch_error
  • test_node_type_error_catchable_as_type_error

@nathanjmcdougall nathanjmcdougall merged commit 2c28c5a into main May 26, 2026
18 checks passed
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