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

Method test_getdata_pep302

Lib/test/test_pkgutil.py:385–388  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

383 del sys.meta_path[0]
384
385 def test_getdata_pep302(self):
386 # Use a dummy finder/loader
387 self.assertEqual(pkgutil.get_data('foo', 'dummy'), "Hello, world!")
388 del sys.modules['foo']
389
390 def test_alreadyloaded(self):
391 # Ensure that get_data works without reloading - the "loads" module

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
get_dataMethod · 0.45

Tested by

no test coverage detected