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

Method test_validation

Lib/test/test_importlib/test_lazy.py:35–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 self.assertEqual({'kw': 'kw'}, loader.kwargs)
34
35 def test_validation(self):
36 # No exec_module(), no lazy loading.
37 with self.assertRaises(TypeError):
38 util.LazyLoader.factory(object)
39
40
41class TestingImporter(abc.MetaPathFinder, abc.Loader):

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.45
factoryMethod · 0.45

Tested by

no test coverage detected