MCPcopy Create free account
hub / github.com/numpy/numpy / test_interface

Method test_interface

numpy/distutils/tests/test_ccompiler_opt.py:278–285  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

276 )
277
278 def test_interface(self):
279 wrong_arch = "ppc64" if self.arch != "ppc64" else "x86"
280 wrong_cc = "clang" if self.cc != "clang" else "icc"
281 opt = self.opt()
282 assert_(getattr(opt, "cc_on_" + self.arch))
283 assert_(not getattr(opt, "cc_on_" + wrong_arch))
284 assert_(getattr(opt, "cc_is_" + self.cc))
285 assert_(not getattr(opt, "cc_is_" + wrong_cc))
286
287 def test_args_empty(self):
288 for baseline, dispatch in (

Callers

nothing calls this directly

Calls 2

optMethod · 0.95
assert_Function · 0.90

Tested by

no test coverage detected