Skip to content

Commit

Permalink
xfail for test_G_star_Row_Standardized (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi committed Jul 21, 2024
1 parent 8a99e1d commit faff9fd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion esda/tests/test_getisord.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,16 @@ def test_G_star_Local_Binary(self, w):
np.testing.assert_allclose(lg.p_sim[0], 0.102, rtol=RTOL, atol=ATOL)

@parametrize_w
def test_G_star_Row_Standardized(self, w):
@pytest.mark.xfail(
reason="Intermittently does not warn for W param; reason unknown; see gh#331"
)
def test_G_star_Row_Standardized_warning(self, w):
with pytest.warns(UserWarning, match="Gi\\* requested, but"):
lg = getisord.G_Local(self.y, w, transform="R", star=True, seed=10)

@parametrize_w
def test_G_star_Row_Standardized_values(self, w):
lg = getisord.G_Local(self.y, w, transform="R", star=True, seed=10)
np.testing.assert_allclose(lg.Zs[0], -0.62488094, rtol=RTOL, atol=ATOL)
np.testing.assert_allclose(lg.p_sim[0], 0.102, rtol=RTOL, atol=ATOL)

Expand Down

0 comments on commit faff9fd

Please sign in to comment.