MCPcopy Index your code
hub / github.com/numpy/numpy / setup_class

Method setup_class

numpy/_core/tests/test_cpu_features.py:162–166  ·  view source on GitHub ↗
(self, tmp_path_factory)

Source from the content-addressed store, hash-verified

160
161 @pytest.fixture(autouse=True)
162 def setup_class(self, tmp_path_factory):
163 file = tmp_path_factory.mktemp("runtime_test_script")
164 file /= "_runtime_detect.py"
165 file.write_text(self.SCRIPT)
166 self.file = file
167
168 def _run(self):
169 return subprocess.run(

Callers

nothing calls this directly

Calls 1

write_textMethod · 0.45

Tested by

no test coverage detected