diff options
Diffstat (limited to 'python313-unittest.patch')
-rw-r--r-- | python313-unittest.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/python313-unittest.patch b/python313-unittest.patch new file mode 100644 index 0000000..176a39b --- /dev/null +++ b/python313-unittest.patch @@ -0,0 +1,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) |