unable to build since a few commits,
================================================================================================================== FAILURES ===================================================================================================================
________________________________________________________________________________________________________ StartupTest.test_gui_startup _________________________________________________________________________________________________________
self = <pynicotine.tests.integration.test_startup.StartupTest testMethod=test_gui_startup>
def test_gui_startup(self):
"""Verify that regular GUI startup works."""
command = [sys.executable, "-m", "pynicotine", f"--config={CONFIG_FILE}", f"--user-data={DATA_FOLDER_PATH}",
"--ci-mode"]
broadway_display = ":1000"
broadway_process = None
is_success = False
if sys.platform not in {"darwin", "win32"}:
# Display server is required, use GDK's Broadway backend if available.
# If not available, leave it up to the user to run the tests with e.g. xvfb-run.
# pylint: disable=consider-using-with
try:
broadway_process = subprocess.Popen(["gtk4-broadwayd", broadway_display])
except Exception:
try:
broadway_process = subprocess.Popen(["broadwayd", broadway_display])
except Exception:
pass
if broadway_process is not None:
os.environ["GDK_BACKEND"] = "broadway"
os.environ["BROADWAY_DISPLAY"] = broadway_display
with subprocess.Popen(command) as process:
try:
process.wait(timeout=5)
except subprocess.TimeoutExpired:
is_success = True
process.terminate()
if broadway_process is not None:
broadway_process.terminate()
broadway_process.wait()
> self.assertTrue(is_success)
E AssertionError: False is not true
pynicotine/tests/integration/test_startup.py:76: AssertionError
------------------------------------------------------------------------------------------------------------ Captured stdout call -------------------------------------------------------------------------------------------------------------
Listening on /run/user/1000/broadway1001.socket
[04/27/24 20:52:18] Loading Python 3.12.3
[04/27/24 20:52:18] Loading Nicotine+ 3.3.3rc2
[04/27/2024 08:52:18 PM] Loading GTK 3.24.41
------------------------------------------------------------------------------------------------------------ Captured stderr call -------------------------------------------------------------------------------------------------------------
(org.nicotine_plus.Nicotine:3440661): Gtk-WARNING **: 20:52:18.438: cannot open display: :1
=========================================================================================================== short test summary info ===========================================================================================================
FAILED pynicotine/tests/integration/test_startup.py::StartupTest::test_gui_startup - AssertionError: False is not true
======================================================================================================== 1 failed, 61 passed in 16.22s ========================================================================================================
==> ERROR: A failure occurred in check().
Aborting...
-> error making: nicotine-plus-git-exit status 4
-> Failed to install the following packages. Manual intervention is required:
nicotine-plus-git - exit status 4
Pinned Comments