voc / voctomix

Full-HD Software Live-Video-Mixer in python
https://c3voc.de/
MIT License
578 stars 107 forks source link

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

Open eevelweezel opened 2 months ago

eevelweezel commented 2 months ago

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.