summaryrefslogtreecommitdiffstats
path: root/python313-unittest.patch
blob: 176a39b68e5bb7747d2b123b1f1317e0ca255dee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 2afa94a7dca53d1a7ed8d1f77823173e33d92202 Mon Sep 17 00:00:00 2001
From: Yaakov Selkowitz <yselkowi@redhat.com>
Date: Fri, 21 Jun 2024 14:48:56 -0400
Subject: [PATCH] Update filtration_test for Python 3.13

`unittest.makeSuite()` was deprecated in Python 3.11 and removed in 3.13:

https://docs.python.org/3.13/whatsnew/3.13.html#unittest
---

 source/python/icutools/databuilder/test/filtration_test.py  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/python/icutools/databuilder/test/filtration_test.py b/source/python/icutools/databuilder/test/filtration_test.py
index 416223bd7e34..41b593715d50 100644
--- a/source/python/icutools/databuilder/test/filtration_test.py
+++ b/source/python/icutools/databuilder/test/filtration_test.py
@@ -418,4 +418,4 @@ def _check_filter(self, filter, expected_matches, tree="locales"):
             self.assertEqual(is_match, expected_match, file_stem)
 
 # Export the test for the runner
-suite = unittest.makeSuite(FiltrationTest)
+suite = unittest.defaultTestLoader.loadTestsFromTestCase(FiltrationTest)