Skip to content

Commit

Permalink
Merge branch 'markmentovai-python_3.13_tests'
Browse files Browse the repository at this point in the history
  • Loading branch information
eblot committed Nov 19, 2024
2 parents 327a1a7 + 426e1ab commit dac6dcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pyftdi/tests/toolsimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from importlib import import_module
from os.path import dirname, join as joinpath
from sys import modules, path as syspath
from unittest import TestCase, TestSuite, makeSuite, main as ut_main
from unittest import TestCase, TestLoader, TestSuite, main as ut_main


class ToolsTestCase(TestCase):
Expand Down Expand Up @@ -57,7 +57,7 @@ def test_ftdi_urls(self):

def suite():
suite_ = TestSuite()
suite_.addTest(makeSuite(ToolsTestCase, 'test'))
suite_.addTest(TestLoader().loadTestsFromModule(modules[__name__]))
return suite_


Expand Down
5 changes: 2 additions & 3 deletions pyftdi/tests/uart.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from sys import modules, platform, stdout
from time import sleep, time as now
from threading import Thread
from unittest import TestCase, TestSuite, skipIf, makeSuite, main as ut_main
from unittest import TestCase, TestLoader, TestSuite, skipIf, main as ut_main
from pyftdi import FtdiLogger
from pyftdi.ftdi import Ftdi
from pyftdi.misc import to_bool
Expand Down Expand Up @@ -343,8 +343,7 @@ def test(self):

def suite():
suite_ = TestSuite()
suite_.addTest(makeSuite(BaudrateTestCase, 'test'))
suite_.addTest(makeSuite(UartTestCase, 'test'))
suite_.addTest(TestLoader().loadTestsFromModule(modules[__name__]))
return suite_


Expand Down

0 comments on commit dac6dcb

Please sign in to comment.