MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_main_relative_import

Method test_main_relative_import

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

printFunction · 0.50

Tested by

no test coverage detected