MCPcopy Index your code
hub / github.com/python/cpython / test_main_relative_import

Method test_main_relative_import

Lib/test/test_runpy.py:540–543  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

538 self._check_relative_imports(depth)
539
540 def test_main_relative_import(self):
541 for depth in range(2, 5):
542 if verbose > 1: print("Testing main relative imports at depth:", depth)
543 self._check_relative_imports(depth, "__main__")
544
545 def test_run_name(self):
546 depth = 1

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected