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

Method test_group

numpy/distutils/tests/test_ccompiler_opt_conf.py:127–142  ·  view source on GitHub ↗
(self, error_msg, search_in, feature_name, feature_dict)

Source from the content-addressed store, hash-verified

125 raise AssertionError(error_msg + "implies non-exist feature '%s'" % impl)
126
127 def test_group(self, error_msg, search_in, feature_name, feature_dict):
128 if feature_dict.get("disabled") is not None:
129 return
130 group = feature_dict.get("group", "")
131 if not group:
132 return
133 if isinstance(group, str):
134 group = group.split()
135
136 for f in group:
137 impl_dict = search_in.get(f)
138 if not impl_dict or "disable" in impl_dict:
139 continue
140 raise AssertionError(error_msg +
141 "in option 'group', '%s' already exists as a feature name" % f
142 )
143
144 def test_extra_checks(self, error_msg, search_in, feature_name, feature_dict):
145 if feature_dict.get("disabled") is not None:

Callers 1

test_featureMethod · 0.95

Calls 2

getMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected