From f207c40c333b1dc6dadcc2df5391a8c7bd64765a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 30 Aug 2024 09:35:35 +0200 Subject: update to 74.2 (from F40) --- python313-unittest.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 python313-unittest.patch (limited to 'python313-unittest.patch') 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 +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) -- cgit