Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Fix runtime error in python 3.12 #1425

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Conversation

rleon
Copy link
Member

@rleon rleon commented Feb 5, 2024

tests (unittest.loader._FailedTest.tests) ... ERROR

====================================================================== ERROR: tests (unittest.loader._FailedTest.tests)
---------------------------------------------------------------------- Traceback (most recent call last):
File "/home/leonro/src/rdma-core/tests/init.py", line 43, in load_tests
standard_tests.addTests(loader.loadTestsFromModule(mod, pattern))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: TestLoader.loadTestsFromModule() takes 2 positional arguments but 3 were given

---------------------------------------------------------------------- Ran 1 test in 0.002s

FAILED (errors=1)

tests (unittest.loader._FailedTest.tests) ... ERROR

======================================================================
ERROR: tests (unittest.loader._FailedTest.tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/leonro/src/rdma-core/tests/__init__.py", line 43, in load_tests
    standard_tests.addTests(loader.loadTestsFromModule(mod, pattern))
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: TestLoader.loadTestsFromModule() takes 2 positional arguments but 3 were given

----------------------------------------------------------------------
Ran 1 test in 0.002s

FAILED (errors=1)

Signed-off-by: Leon Romanovsky <[email protected]>
@rleon rleon merged commit 0ffe03e into linux-rdma:master Feb 5, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants