Skip to content

Commit 76c520e

Browse files
authored
Merge pull request #370 from bashtage/relax-test
MAINT: Relax test tolerance slightly
2 parents 16ae12a + 241f2fc commit 76c520e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linearmodels/tests/iv/test_gmm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def test_center(self, data, kernel, bandwidth):
123123
for name in kernel.alt_names:
124124
wm = KernelWeightMatrix(name, bandwidth, center=True, optimal_bw=True)
125125
weight2 = wm.weight_matrix(data.x, data.z, data.e)
126-
assert_equal(weight, weight2)
126+
assert_allclose(weight, weight2, rtol=1e-12)
127127

128128
def test_debiased(self, kernel, data, bandwidth):
129129
wm = KernelWeightMatrix(
@@ -162,7 +162,7 @@ def test_config(self, data, kernel, bandwidth):
162162
for name in kernel.alt_names:
163163
wm = KernelWeightMatrix(kernel=name, bandwidth=bandwidth)
164164
weight2 = wm.weight_matrix(data.x, data.z, data.e)
165-
assert_equal(weight, weight2)
165+
assert_allclose(weight, weight2, rtol=1e-12)
166166

167167

168168
class TestClusterWeight(object):

0 commit comments

Comments
 (0)