Python 3.13: Replace deprecated makeSuite() (#65)

The function has been deprecated in Python 3.11 and is no longer
available in Python 3.13.
This commit is contained in:
Sandro
2024-10-14 20:36:04 +02:00
committed by GitHub
parent 4a8018c2de
commit 6eedaf7717
6 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -53,8 +53,8 @@ class AddrCacheTestCase(unittest.TestCase):
s = Milter.utils.parseaddr('a(WRONG)@b')
self.assertEqual(s,('WRONG', 'a@b'))
def suite():
s = unittest.makeSuite(AddrCacheTestCase,'test')
def suite():
s = unittest.TestLoader().loadTestsFromTestCase(AddrCacheTestCase)
s.addTest(doctest.DocTestSuite(Milter.utils))
s.addTest(doctest.DocTestSuite(Milter.dynip))
s.addTest(doctest.DocTestSuite(Milter.pyip6))