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

voctocore test suite fails when run on python 3.9, 3.10, and 3.11 #341

Open
eevelweezel opened this issue Jul 27, 2024 · 0 comments
Open

Comments

@eevelweezel
Copy link
Contributor

eevelweezel commented Jul 27, 2024

At a minimum, the tests should be updated to use unittest.mock vs. standalone mock. However, even after that update, the tests still fail with the following error, even on a machine where voctomix is running:

`======================================================================
ERROR: tests.commands.test_get_config_option (unittest.loader._FailedTest.tests.commands.test_get_config_option)

ImportError: Failed to import test module: tests.commands.test_get_config_option
Traceback (most recent call last):
File "/usr/lib/python3.11/unittest/loader.py", line 407, in _find_test_path
module = self._get_module_from_name(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/unittest/loader.py", line 350, in _get_module_from_name
import(name)
File "/home/eevel/voctomix/voctocore/tests/commands/test_get_config_option.py", line 2, in
from lib.config import Config
File "/home/eevel/voctomix/voctocore/lib/config.py", line 14, in
from vocto.config import VocConfigParser
File "/home/eevel/voctomix/vocto/init.py", line 3, in
gi.require_version('Gst', '1.0')
^^^^^^^^^^^^^^^^^^
AttributeError: module 'gi' has no attribute 'require_version'
`
Tested on Debian Bookworm (1 from minimal install, 2nd built with Debian Videoteam workflow) with python 3.9, 3.10, and 3.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant