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:
+1
-1
@@ -42,7 +42,7 @@ class PolicyTestCase(unittest.TestCase):
|
||||
pol = p.getPolicy('smtp-test')
|
||||
self.assertEqual(pol,'WILDCARD')
|
||||
|
||||
def suite(): return unittest.makeSuite(PolicyTestCase,'test')
|
||||
def suite(): return unittest.TestLoader().loadTestsFromTestCase(PolicyTestCase)
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) < 2:
|
||||
|
||||
Reference in New Issue
Block a user