Test that module imports are properly nested.
()
| 264 | |
| 265 | @pytest.mark.skipif(bool(eager_import), reason=f"EAGER_IMPORT={eager_import}") |
| 266 | def test_lazy_loading(): |
| 267 | """Test that module imports are properly nested.""" |
| 268 | stdout, stderr, code = run_subprocess( |
| 269 | [sys.executable, "-c", run_script], return_code=True |
| 270 | ) |
| 271 | assert code == 0, stdout + stderr |
nothing calls this directly
no test coverage detected