Bug 50832 - При запуске теста key_test.py ошибки: 'ERROR: setUpClass (__main__.KeyModuleTest)' и 'test_get_focused (__main__.KeyModuleTest)'
Summary: При запуске теста key_test.py ошибки: 'ERROR: setUpClass (__main__.KeyModuleT...
Status: NEW
Alias: None
Product: Branch p10
Classification: Unclassified
Component: python3-module-pygame (show other bugs)
Version: не указана
Hardware: x86_64 Linux
: P5 normal
Assignee: Fr. Br. George
QA Contact: qa-p10@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-05 09:29 MSK by Tatyana Gagina
Modified: 2024-07-05 09:29 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tatyana Gagina 2024-07-05 09:29:14 MSK
Стенды P10:
ALT Education KDE x86-64
ALT Education XFCE x86-64
ALT Workstation x86-64
ALT Workstation K x86-64
ALT Server x86-64

Версия: python3-module-pygame-2.0.1-alt1

Шаги: 
1) Установить пакет:
# apt-get install -y  python3-module-pygame

2) Запустить в графическом сеансе:
# cd /usr/lib64/python3/site-packages/pygame/tests/ && python3 ./key_test.py

Результат: 
- на Server x86-64
pygame 2.0.1 (SDL 2.30.3, Python 3.9.18)
Hello from the pygame community. https://www.pygame.org/contribute.html
E
======================================================================
ERROR: setUpClass (__main__.KeyModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3/site-packages/pygame/tests/./key_test.py", line 13, in setUpClass
    pygame.init()
RuntimeError: SDL compiled with version 2.0.14, linked to 2.30.3

----------------------------------------------------------------------
Ran 0 tests in 0.000s

FAILED (errors=1)

на остальных системах

FAIL: test_get_focused (__main__.KeyModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3/site-packages/pygame/tests/./key_test.py", line 60, in test_get_focused
    self.assertFalse(pygame.key.get_focused())
AssertionError: 1 is not false

----------------------------------------------------------------------
Ran 7 tests in 0.864s

FAILED (failures=1

Проверялось на  Sisyphus, ошибка не воспроизводится с версией python3-module-pygame-2.5.2-alt1.