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

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

    <bug>
          <bug_id>50832</bug_id>
          
          <creation_ts>2024-07-05 09:29:14 +0300</creation_ts>
          <short_desc>При запуске теста key_test.py ошибки: &apos;ERROR: setUpClass (__main__.KeyModuleTest)&apos; и &apos;test_get_focused (__main__.KeyModuleTest)&apos;</short_desc>
          <delta_ts>2024-07-05 09:29:14 +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>248558</commentid>
    <comment_count>0</comment_count>
    <who name="Tatyana Gagina">tatyana</who>
    <bug_when>2024-07-05 09:29:14 +0300</bug_when>
    <thetext>Стенды 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/ &amp;&amp; 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 &quot;/usr/lib64/python3/site-packages/pygame/tests/./key_test.py&quot;, 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 &quot;/usr/lib64/python3/site-packages/pygame/tests/./key_test.py&quot;, 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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>