Skip to content

Commit

Permalink
fix removed unittest.makeSuite in python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Nov 27, 2024
1 parent 35c0f4f commit de45a21
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions plone/portlet/static/tests/test_portlet_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,9 @@ def test_relative_link(self):


def test_suite():
from unittest import makeSuite
from unittest import TestSuite
import unittest

suite = TestSuite()
suite.addTest(makeSuite(TestPortlet))
suite.addTest(makeSuite(TestRenderer))
return suite
return unittest.TestSuite((
unittest.defaultTestLoader.loadTestsFromTestCase(TestPortlet),
unittest.defaultTestLoader.loadTestsFromTestCase(TestRenderer),
))

0 comments on commit de45a21

Please sign in to comment.