From faff9fd1d765f62b26227c848096c91120fcf2f8 Mon Sep 17 00:00:00 2001 From: James Gaboardi Date: Sun, 21 Jul 2024 02:22:36 -0400 Subject: [PATCH] xfail for `test_G_star_Row_Standardized` (#336) --- esda/tests/test_getisord.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/esda/tests/test_getisord.py b/esda/tests/test_getisord.py index 1895036f..d97e7c2c 100644 --- a/esda/tests/test_getisord.py +++ b/esda/tests/test_getisord.py @@ -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)