| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Port missing test coverage from the internal lazy imports test suite, covering behaviors not previously tested in cpython: - Dict operations with lazy values (copy, |, update preserve proxies) - Submodule laziness (unaccessed imports stay lazy until touched) - Attribute side effects (submodule imports don't overwrite parent attrs) - Module/variable name collisions (submodule vs variable ordering) - Deleted module reimport (sys.modules deletion and reimport) - Circular import resolution (lazy imports breaking circular deadlocks) - Dict mutation during module loading (no crash on dict resize) Adds supporting test data modules: metasyntactic package hierarchy, versioned package, module_same_name_var_order packages, and circular_import_pkg.
- Remove trailing newlines from empty __init__.py files to satisfy pre-commit hooks - Fix test_fails_without_lazy to not pass invalid -X lazy_imports=none flag - Add 14 new test data directories to TESTSUBDIRS in Makefile.pre.in Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…evant implementation detail from pep690
|
Addressed comments. |
Sorry, something went wrong.
Add lazy import tests ported from internal test suite
|
Thanks @brittanyrey for the PR, and @DinoV for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
Sorry, something went wrong.
|
Sorry, @brittanyrey and @DinoV, I could not cleanly backport this to 3.15 due to a conflict. Please backport manually with cherry_picker, see the devguide for more information. cherry_picker 10d1b63ed8b0261e7a9b7ffc3231eafd89187a4b 3.15 |
Sorry, something went wrong.
|
GH-158614 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
…GH-149739) (python#158614) Co-authored-by: Brittany Reynoso <breynoso@meta.com>
| Back | FazBrowse Home | New Git URL |
We had a lot of Lazy Import tests in the Cinder/MetaPython Lazy Imports test suite that should also be useful for Cpython. Porting some tests over to increase coverage--especially around lazy_imports=all.
Adds supporting test data modules.
#150565