about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/scikit-posthocs/0002-Update-test_posthocs.py.patch
blob: fa4d6d3ececffdff2183a8848ca6910941d59f4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 5416ffba3ab01aebab3909400b5a9e847022898e Mon Sep 17 00:00:00 2001
From: Maksim Terpilovskii <maximtrp@gmail.com>
Date: Thu, 16 Mar 2023 00:20:02 +0300
Subject: [PATCH] Update test_posthocs.py

---
 tests/test_posthocs.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_posthocs.py b/tests/test_posthocs.py
index 8cc65e4..42ca5f3 100644
--- a/tests/test_posthocs.py
+++ b/tests/test_posthocs.py
@@ -71,7 +71,7 @@ class TestPosthocs(unittest.TestCase):
         a = splt.sign_plot(x, flat=True, labels=False)
         with self.assertRaises(ValueError):
             splt.sign_plot(x.astype(float), flat=True, labels=False)
-        self.assertTrue(isinstance(a, ma._subplots.Axes))
+        self.assertTrue(isinstance(a, ma._axes.Axes))
 
     def test_sign_plot_nonflat(self):
 
@@ -85,7 +85,7 @@ class TestPosthocs(unittest.TestCase):
         with self.assertRaises(ValueError):
             splt.sign_plot(x.astype(np.int64), labels=False)
 
-        self.assertTrue(isinstance(a, ma._subplots.Axes) and isinstance(cbar, mpl.colorbar.ColorbarBase))
+        self.assertTrue(isinstance(a, ma._axes.Axes) and isinstance(cbar, mpl.colorbar.ColorbarBase))
 
     # Outliers tests
     def test_outliers_iqr(self):
-- 
2.36.1