Skip to content

Commit 2f9923c

Browse files
committed
Merge branch 'markmentovai-python_3.13_tests'
2 parents a7a5f90 + 426e1ab commit 2f9923c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pyftdi/tests/toolsimport.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from importlib import import_module
1414
from os.path import dirname, join as joinpath
1515
from sys import modules, path as syspath
16-
from unittest import TestCase, TestSuite, makeSuite, main as ut_main
16+
from unittest import TestCase, TestLoader, TestSuite, main as ut_main
1717

1818

1919
class ToolsTestCase(TestCase):
@@ -57,7 +57,7 @@ def test_ftdi_urls(self):
5757

5858
def suite():
5959
suite_ = TestSuite()
60-
suite_.addTest(makeSuite(ToolsTestCase, 'test'))
60+
suite_.addTest(TestLoader().loadTestsFromModule(modules[__name__]))
6161
return suite_
6262

6363

pyftdi/tests/uart.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from sys import modules, platform, stdout
1919
from time import sleep, time as now
2020
from threading import Thread
21-
from unittest import TestCase, TestSuite, skipIf, makeSuite, main as ut_main
21+
from unittest import TestCase, TestLoader, TestSuite, skipIf, main as ut_main
2222
from pyftdi import FtdiLogger
2323
from pyftdi.ftdi import Ftdi
2424
from pyftdi.misc import to_bool
@@ -343,8 +343,7 @@ def test(self):
343343

344344
def suite():
345345
suite_ = TestSuite()
346-
suite_.addTest(makeSuite(BaudrateTestCase, 'test'))
347-
suite_.addTest(makeSuite(UartTestCase, 'test'))
346+
suite_.addTest(TestLoader().loadTestsFromModule(modules[__name__]))
348347
return suite_
349348

350349

0 commit comments

Comments
 (0)