MCPcopy
hub / github.com/mne-tools/mne-python / test_lazy_loading

Function test_lazy_loading

mne/tests/test_import_nesting.py:266–271  ·  view source on GitHub ↗

Test that module imports are properly nested.

()

Source from the content-addressed store, hash-verified

264
265@pytest.mark.skipif(bool(eager_import), reason=f"EAGER_IMPORT={eager_import}")
266def 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

Callers

nothing calls this directly

Calls 1

run_subprocessFunction · 0.90

Tested by

no test coverage detected