File support-numpy-2.patch of Package python-seaborn
From 371f33c5ac72c5c670e0dde00e42973bcf13f892 Mon Sep 17 00:00:00 2001
From: Michael Waskom <mwaskom@gmail.com>
Date: Thu, 25 Apr 2024 06:54:20 -0400
Subject: [PATCH] Remove reference to deprecated numpy error class in tests
---
tests/test_distributions.py | 3 ---
1 file changed, 3 deletions(-)
diff --git a/tests/test_distributions.py b/tests/test_distributions.py
index 0df1a15beb..fd2f333fbc 100644
--- a/tests/test_distributions.py
+++ b/tests/test_distributions.py
@@ -1038,9 +1038,6 @@ def test_bandwidth(self, rng):
def test_weights(self, rng):
- import warnings
- warnings.simplefilter("error", np.VisibleDeprecationWarning)
-
n = 100
x, y = rng.multivariate_normal([1, 3], [(.2, .5), (.5, 2)], n).T
hue = np.repeat([0, 1], n // 2)