Add OWN_GIL tests for Channel, ByteChannel, and Buffer operations#45
Merged
Add OWN_GIL tests for Channel, ByteChannel, and Buffer operations#45
Conversation
- Add erlang_api test group with 8 tests - Test whereis basic, nonexistent, with send, and parallel - Test atom equality and roundtrip (note: atoms become strings in OWN_GIL) - Test Ref type check and uniqueness - Test Pid equality, hashing, dict key, set membership
Add atom() wrapper with caching directly in C module creation, so it's available in OWN_GIL contexts where _erlang_impl package isn't imported. - Add atom_wrapper_code in create_erlang_module() with: - _atom_cache dict for memoization - _MAX_USER_ATOMS limit (10000) to prevent unbounded growth - atom() function that wraps erlang._atom() with caching - Add 3 new tests: atom_create, atom_create_different, atom_cache - Add Python helpers for testing erlang.atom() in OWN_GIL mode
- Channel class: receive, iteration, context manager - ByteChannel: send_bytes, try_receive_bytes, iteration - Buffer: read methods, at_eof detection
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
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.
Summary
8 new tests added to the erlang_api group in py_owngil_features_SUITE.