<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>50817</bug_id>
          
          <creation_ts>2024-07-04 13:59:29 +0300</creation_ts>
          <short_desc>Интерактивный модульный тест display_test.py с ошибкой &apos;FAIL: test_set_gamma_ramp (__main__.DisplayInteractiveTest)&apos;</short_desc>
          <delta_ts>2024-07-04 14:22:30 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p10</product>
          <component>python3-module-pygame</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tatyana Gagina">tatyana</reporter>
          <assigned_to name="Fr. Br. George">george</assigned_to>
          <cc>george</cc>
          
          <qa_contact name="qa-p10@altlinux.org">qa-p10</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>248513</commentid>
    <comment_count>0</comment_count>
    <who name="Tatyana Gagina">tatyana</who>
    <bug_when>2024-07-04 13:59:29 +0300</bug_when>
    <thetext>Стенды 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/ &amp;&amp;  python3 ./display_test.py  

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

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

   ===Полный вывод:===
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 &quot;/usr/lib64/python3/site-packages/pygame/tests/./display_test.py&quot;, 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>248516</commentid>
    <comment_count>1</comment_count>
    <who name="Tatyana Gagina">tatyana</who>
    <bug_when>2024-07-04 14:22:30 +0300</bug_when>
    <thetext>Пометка: на P10 ALT Server x86-64 проверялось только наличие данного теста (нет графической оболочки).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>