MCPcopy
hub / github.com/ray-project/ray / test_load_module

Method test_load_module

python/ray/_common/tests/test_utils.py:178–183  ·  view source on GitHub ↗

Test loading a module.

(self)

Source from the content-addressed store, hash-verified

176 assert list_class is list, "Should load the builtin list class"
177
178 def test_load_module(self):
179 """Test loading a module."""
180 path_module = load_class("os.path")
181 import os.path
182
183 assert path_module is os.path, "Should load os.path module"
184
185 def test_load_function(self):
186 """Test loading a function from a module."""

Callers

nothing calls this directly

Calls 1

load_classFunction · 0.90

Tested by

no test coverage detected