1
0
forked from pool/python-bsddb3
Files
python-bsddb3/support-python312.patch
Steve Kowalik 84921b906f - Add patch support-python312.patch:
* Fix the test script to support Python 3.12.
- Use fdupes.
- Switch to autosetup macro.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bsddb3?expand=0&rev=39
2024-02-05 04:36:05 +00:00

24 lines
908 B
Diff

Index: bsddb3-6.2.9/test3.py
===================================================================
--- bsddb3-6.2.9.orig/test3.py
+++ bsddb3-6.2.9/test3.py
@@ -152,13 +152,13 @@ try : # Check in the future if this sti
# Python 2.7 and 3.2
from unittest.runner import _TextTestResult
except ImportError :
- from unittest import _TextTestResult
+ from unittest import TextTestResult
-class ImmediateTestResult(_TextTestResult):
+class ImmediateTestResult(TextTestResult):
- __super_init = _TextTestResult.__init__
- __super_startTest = _TextTestResult.startTest
- __super_printErrors = _TextTestResult.printErrors
+ __super_init = TextTestResult.__init__
+ __super_startTest = TextTestResult.startTest
+ __super_printErrors = TextTestResult.printErrors
def __init__(self, stream, descriptions, verbosity, debug=False,
count=None, progress=False):