File CVE-2025-50817.patch of Package python-future.40320

Index: future-0.15.2/src/future/standard_library/__init__.py
===================================================================
--- future-0.15.2.orig/src/future/standard_library/__init__.py
+++ future-0.15.2/src/future/standard_library/__init__.py
@@ -17,7 +17,6 @@ And then these normal Py3 imports work o
     import reprlib
     import socketserver
     import winreg    # on Windows only
-    import test.support
     import html, html.parser, html.entites
     import http, http.client, http.server
     import http.cookies, http.cookiejar
@@ -88,7 +87,7 @@ from future.utils import PY2, PY3
 #   test
 #   email
 
-REPLACED_MODULES = set(['test', 'urllib', 'pickle', 'dbm'])  # add email and dbm when we support it
+REPLACED_MODULES = set(['urllib', 'pickle', 'dbm'])  # add email and dbm when we support it
 
 # The following module names are not present in Python 2.x, so they cause no
 # potential clashes between the old and new names:
@@ -478,19 +477,6 @@ def install_aliases():
     sys.modules['urllib.error'] = error
     sys.modules['urllib.robotparser'] = robotparser
 
-    # Patch the test module so it appears to have the same structure on Py2 as on Py3
-    try:
-        import test
-    except ImportError:
-        pass
-    try:
-        from future.moves.test import support
-    except ImportError:
-        pass
-    else:
-        test.support = support
-        sys.modules['test.support'] = support
-
     # Patch the dbm module so it appears to have the same structure on Py2 as on Py3
     try:
         import dbm
openSUSE Build Service is sponsored by