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

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

    <bug>
          <bug_id>60618</bug_id>
          
          <creation_ts>2026-09-18 11:36:05 +0300</creation_ts>
          <short_desc>python3-module-tenacity: FTBFS в %check — asyncio-тесты несовместимы с Python 3.14 (no current event loop)</short_desc>
          <delta_ts>2026-09-28 11:29:38 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>python3-module-tenacity</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</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="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="Grigory Ustinov">grenka</assigned_to>
          <cc>egori</cc>
    
    <cc>glebfm</cc>
    
    <cc>grenka</cc>
    
    <cc>kotopesutility</cc>
    
    <cc>root</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>299552</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2026-09-18 11:36:05 +0300</bug_when>
    <thetext>Пакет python3-module-tenacity-8.5.0-alt1 не собирается в Sisyphus (x86_64): падают 18 asyncio-тестов в %check.

Лог: https://git.altlinux.org/beehive/logs/Sisyphus/x86_64/archive/2026/0918/error/python3-module-tenacity-8.5.0-alt1

Характерная ошибка:
E   RuntimeError: There is no current event loop in thread &apos;MainThread&apos;.
/usr/lib64/python3.14/asyncio/events.py:718: RuntimeError

Падают тесты tests/test_asyncio.py (TestContextManager, TestDecoratorWrapper) и tests/test_issue_478.py::TestIssue478::test_async.

Причина: тесты используют asyncio.get_event_loop() / полагаются на неявный event loop в главном потоке, который удалён начиная с Python 3.12+ (в Sisyphus уже Python 3.14). Код тестов устарел относительно новых версий Python.

Важно: в p11 пакет (8.0.1-alt1) тоже не проходит пересборку:
https://git.altlinux.org/beehive/logs/p11/x86_64/latest/error/python3-module-tenacity-8.0.1-alt1

Варианты исправления:
1. Обновить до актуальной версии апстрима (в новых релизах tenacity тесты адаптированы под Python 3.12+; см. https://github.com/jd/tenacity) — либо забрать соответствующий патч из апстрима (создание event loop явно через asyncio.new_event_loop()/asyncio.run в тестах).
2. Временно отключить (deselect) падающие asyncio-тесты в %check с комментарием в спеке.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>300324</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-09-28 11:29:38 +0300</bug_when>
    <thetext>python3-module-tenacity-9.2.0-alt1 -&gt; sisyphus:

Mon Sep 28 2026 Egor Ignatov &lt;egori@altlinux&gt; 9.2.0-alt1
- New version 9.2.0.
- Switched to building from upstream git.
- Fixes FTBFS under python3 3.14 (closes: #60618).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>