From eacd0f9b1e1f2fd08c5d27aadb0daf3af9afc15a Mon Sep 17 00:00:00 2001
From: Matt Haberland <matt.haberland@gmail.com>
Date: Sat, 22 Nov 2025 10:58:25 -0800
Subject: [PATCH] TST: stats.t: add tolerance to moment test

---
 scipy/stats/tests/test_distributions.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: scipy/scipy/stats/tests/test_distributions.py
===================================================================
--- scipy.orig/scipy/stats/tests/test_distributions.py	2025-12-05 19:30:57.894946992 +0100
+++ scipy/scipy/stats/tests/test_distributions.py	2025-12-05 19:30:57.886946909 +0100
@@ -3897,7 +3897,8 @@
         assert_equal(stats.t.stats(df=3, moments='sk'), (np.nan, np.inf))
         assert_equal(stats.t.stats(df=3.01, moments='sk'), (0.0, np.inf))
         assert_equal(stats.t.stats(df=4, moments='sk'), (0.0, np.inf))
-        assert_equal(stats.t.stats(df=4.01, moments='sk'), (0.0, 6.0/(4.01 - 4.0)))
+        assert_allclose(stats.t.stats(df=4.01, moments='sk'), (0.0, 6.0/(4.01 - 4.0)),
+                        rtol=1e-14)
 
     def test_t_entropy(self):
         df = [1, 2, 25, 100]
