GeezerVison is showing github.com — Ensure that the tests work even if BinaryFormatter is not available by filmor · Pull Request #2638 · pythonnet/pythonnet
Conversation
filmor
commented
Oct 21, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
- Run most tests in a single Python instance, initialized at start and shutdown at the end
- Improve uv CI setup
- Fix python test runner by essentially replacing it with a call to
pytest.main
- Improve the PythonDLL exception
- Run tests that require reinitialization of the PythonEngine only on .NET Framework/Mono, where we still have a working formatter for the stashing
TODO:
- Remove
PythonEngine.Initialize() and .Shutdown() from all fixtures where it's not strictly necessary
- Ensure that all fixtures reset the environment (e.g. by adjusting the base type providers and codecs back to the default)
- Move the remaining fixtures into a separate project that runs all actual tests in individual processes (not needed, we can run those tests on Mono)
- Reenable all disabled tests (all but the low-level ones)
- Fix the domain reload tests (or ditch them)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced May 24, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|