Commit a451fb0965 for bind

commit a451fb09654836f720439433ab6e5c6291043f2a
Author: Michal Nowak <mnowak@isc.org>
Date:   Fri Oct 9 14:15:07 2026 +0000

    Catch the builtin TimeoutError in asyncio code

    Since Python 3.11, now the minimum for the system tests,
    asyncio.TimeoutError is an alias of the builtin TimeoutError.

    Assisted-by: Claude:claude-opus-5-5

diff --git a/bin/tests/system/reclimit/reclimit_ans.py b/bin/tests/system/reclimit/reclimit_ans.py
index fb7ae4c036..f2bab30999 100644
--- a/bin/tests/system/reclimit/reclimit_ans.py
+++ b/bin/tests/system/reclimit/reclimit_ans.py
@@ -238,7 +238,7 @@ class Ns1ExampleOrgHandler(ReclimitHandler):
             self._second_query_events[qctx.qname] = second_query_event
             try:
                 await asyncio.wait_for(second_query_event.wait(), timeout=0.5)
-            except asyncio.TimeoutError:
+            except TimeoutError:
                 pass
             finally:
                 del self._second_query_events[qctx.qname]
diff --git a/bin/tests/system/tcp/tests_tcp.py b/bin/tests/system/tcp/tests_tcp.py
index 081ef6a182..f874a806f0 100644
--- a/bin/tests/system/tcp/tests_tcp.py
+++ b/bin/tests/system/tcp/tests_tcp.py
@@ -145,7 +145,7 @@ class TcpConnectionPool:
                 asyncio.gather(*tasks, return_exceptions=True),
                 timeout=self.OPEN_TIMEOUT,
             )
-        except asyncio.TimeoutError as exc:
+        except TimeoutError as exc:
             for task in tasks:
                 task.cancel()
             results = await asyncio.gather(*tasks, return_exceptions=True)
diff --git a/pyproject.toml b/pyproject.toml
index c3cb241d36..7b7ceee0e8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -111,6 +111,8 @@ lint.select = [
   "UP045",
   # datetime.UTC alias
   "UP017",
+  # TimeoutError aliases
+  "UP041",
   # f-strings
   "UP031",
   "UP032",