Ensure that the tests work even if BinaryFormatter is not available by filmor · Pull Request #2638 · pythonnet/pythonnet
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 774
Conversation
Copy link Copy Markdown
Member
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)
filmor
force-pushed
the
no-stashing-embedding-tests
branch
from
ccca132 to
bbd8582
Compare
filmor
added this to the
3.1.0 milestone
filmor
force-pushed
the
no-stashing-embedding-tests
branch
4 times, most recently
from
e8e6f90 to
2bd1a64
Compare
filmor
force-pushed
the
no-stashing-embedding-tests
branch
6 times, most recently
from
710d2e0 to
baf36d2
Compare
filmor added 4 commits
December 8, 2025 11:00
filmor
force-pushed
the
no-stashing-embedding-tests
branch
from
baf36d2 to
01cacfb
Compare
filmor added 6 commits
December 8, 2025 11:08
filmor
force-pushed
the
no-stashing-embedding-tests
branch
from
01cacfb to
2f24a35
Compare
filmor
marked this pull request as ready for review
filmor
deleted the
no-stashing-embedding-tests
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment