Skip to content

Add more Adm bindings#221

Merged
jelmer merged 7 commits intomainfrom
more-adm
Mar 25, 2026
Merged

Add more Adm bindings#221
jelmer merged 7 commits intomainfrom
more-adm

Conversation

@jelmer
Copy link
Copy Markdown
Owner

@jelmer jelmer commented Mar 24, 2026

No description provided.

jelmer added 7 commits March 24, 2026 22:36
The editable install places Rust build artifacts (libpyo3_macros-*.so,
libctor_proc_macro-*.so, etc.) in the subvertpy package directory.
These are not Python extension modules and cause pydoctor to crash
when it tries to parse or introspect them.
pydoctor's _parseFile only catches SyntaxError, but binary .so files
raise UnicodeDecodeError via tokenize.open(), leaving the `parsed`
variable unassigned and crashing in the finally block with
UnboundLocalError. Patch the installed pydoctor to also catch
UnicodeDecodeError so introspection can fall back to importing.
Close the Adm baton in tearDown before super().tearDown() removes the
temp directory. addCleanup runs after tearDown, so on Windows the
wc.db handle was still open when rmtree tried to delete it.
@jelmer jelmer enabled auto-merge March 25, 2026 01:18
@jelmer jelmer disabled auto-merge March 25, 2026 01:32
@jelmer jelmer merged commit db1e9f8 into main Mar 25, 2026
79 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