jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1155635?usp=email )

Change subject: Tests: Try and remove old resource warning catch in utils.py
......................................................................

Tests: Try and remove old resource warning catch in utils.py

Bug: T89116
Bug: T183696
Bug: T184996
Change-Id: I8a83f50850567564e2af0dc6bf6b89829031483f
---
M tests/utils.py
1 file changed, 1 insertion(+), 7 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/tests/utils.py b/tests/utils.py
index 70f7c38..1c95447 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -1,6 +1,6 @@
 """Test utilities."""
 #
-# (C) Pywikibot team, 2013-2024
+# (C) Pywikibot team, 2013-2025
 #
 # Distributed under the terms of the MIT license.
 #
@@ -153,12 +153,6 @@

                     skip_frames -= 1

-            # Ignore socket IO warnings (T183696, T184996)
-            if issubclass(warn_msg.category, ResourceWarning) \
-               and str(warn_msg.message).startswith(
-                   ('unclosed <ssl.SSLSocket', 'unclosed <socket.socket')):
-                return
-
             log.append(warn_msg)

         log = super().__enter__()

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1155635?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I8a83f50850567564e2af0dc6bf6b89829031483f
Gerrit-Change-Number: 1155635
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to