We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07b39af commit 9dfe018Copy full SHA for 9dfe018
sklearn/feature_selection/tests/test_chi2.py
@@ -77,7 +77,7 @@ def test_chi2_unused_feature():
77
warnings.simplefilter('always')
78
chi, p = chi2([[1, 0], [0, 0]], [1, 0])
79
for w in warned:
80
- if 'divide by zero' in w.message:
+ if 'divide by zero' in repr(w):
81
raise AssertionError('Found unexpected warning %s' % w)
82
assert_array_equal(chi, [1, np.nan])
83
assert_array_equal(p[1], np.nan)
0 commit comments