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

Method check_indirect

Lib/test/test_import/__init__.py:2886–2891  ·  view source on GitHub ↗
(self, loaded, orig)

Source from the content-addressed store, hash-verified

2884 self.assertIs(loaded.snapshot.lookedup, loaded.module)
2885
2886 def check_indirect(self, loaded, orig):
2887 # The module re-uses another's PyModuleDef, with a different name.
2888 assert orig is not loaded.module
2889 assert orig.__name__ != loaded.name
2890 self.assertNotEqual(loaded.module.__name__, loaded.name)
2891 self.assertIs(loaded.snapshot.lookedup, loaded.module)
2892
2893 def check_basic(self, loaded, expected_init_count):
2894 # m_size == -1

Callers 1

test_variantsMethod · 0.95

Calls 2

assertNotEqualMethod · 0.80
assertIsMethod · 0.45

Tested by 1

test_variantsMethod · 0.76