Bug 50817

Summary: Интерактивный модульный тест display_test.py с ошибкой 'FAIL: test_set_gamma_ramp (__main__.DisplayInteractiveTest)'
Product: Branch p10 Reporter: Tatyana Gagina <tatyana>
Component: python3-module-pygameAssignee: Fr. Br. George <george>
Status: NEW --- QA Contact: qa-p10 <qa-p10>
Severity: normal    
Priority: P5 CC: george
Version: не указана   
Hardware: x86_64   
OS: Linux   

Description Tatyana Gagina 2024-07-04 13:59:29 MSK
Стенды P10:
ALT Server x86-64
ALT Workstation K x86-64
ALT Workstation x86-64
ALT Education KDE/XFCE x86-64

Стенды:
- виртуальные машины в окружении Proxmox
- реальный стенд (ноутбук): Lenovo IdeaPad Slim 3
Процессор: 13th Gen Intel(R) Core(TM) i5-1335U
Видеокарта (встроенная): Intel Corporation Raptor Lake-P [UHD Graphics]

Версия: 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 ./display_test.py  

3) Следовать шагам (ответить на вопросы, могут быть разные, вводить 'yes' или 'no').

Результат: тест останавливается на втором же вопросе с ошибкой 
'FAIL: test_set_gamma_ramp (__main__.DisplayInteractiveTest)'

   ===Полный вывод:===
pygame 2.0.1 (SDL 2.30.3, Python 3.9.18)
Hello from the pygame community. https://www.pygame.org/contribute.html

Is the window background tinted blue? (y/n): n
F
Is the display icon red square? (y/n): y
..........s..s...............s/usr/lib64/python3/site-packages/pygame/tests/./display_test.py:618: Warning: re-creating window in toggle_fullscreen
  pygame.display.toggle_fullscreen()
/usr/lib64/python3/site-packages/pygame/tests/./display_test.py:626: Warning: re-creating window in toggle_fullscreen
  if pygame.display.toggle_fullscreen() == 1:
....
======================================================================
FAIL: test_set_gamma_ramp (__main__.DisplayInteractiveTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3/site-packages/pygame/tests/./display_test.py", line 682, in test_set_gamma_ramp
    self.assertTrue(response)
AssertionError: False is not true

----------------------------------------------------------------------
Ran 35 tests in 74.435s

FAILED (failures=1, skipped=3)


Детали: не зависит от того, где запускать (одинаковый результат на реальных стендах и виртуальных машинах в окружении Proxmox).

Ожидаемый результат: интерактивный тест продолжается (с запуском окон и закрытием). Как итог, тест выполнен успешно.


Для справки: https://github.com/pygame/pygame/issues/1751 и https://github.com/pygame/pygame/commit/cf8e8cea9a68e80dc6854e2c025e51884759586d
Не воспроизводится в Siyphus с версией python3-module-pygame-2.5.2-alt1
Comment 1 Tatyana Gagina 2024-07-04 14:22:30 MSK
Пометка: на P10 ALT Server x86-64 проверялось только наличие данного теста (нет графической оболочки).