if metric == "wminkowski":
if "p" in kwargs or "w" in kwargs:
continue
kwargs["w"] = 1.0 / X1.std(axis=0)
if((arg == "V" and metric == "seuclidean") or
(arg == "VI" and metric == "mahalanobis") or
(arg == "w" and metric == "wminkowski")):
After Change
log = w.record(DeprecationWarning)
cdist(X1, X1, metric, 2., **kwargs)
pdist(X1, metric, 2., **kwargs)
assert_(len(log) >= 2)
assert_(sum([warn_msg_args in str(warn.message) for warn in log]) == 2)
for arg in ["p", "V", "VI", "w"]:
kwargs = {arg:"foo"}