Skip to content
Snippets Groups Projects
Commit 929757cdeec8 authored by Frank Bessou's avatar Frank Bessou :spider_web:
Browse files

fix: replace usage of unittest._TextTestResult by unittest.TextTestResult

parent f744a7e259d1
No related branches found
No related tags found
1 merge request!95Support py3.12
...@@ -706,7 +706,7 @@ ...@@ -706,7 +706,7 @@
) )
class SkipAwareTestResult(unittest._TextTestResult): class SkipAwareTestResult(unittest.TextTestResult):
def __init__( def __init__(
self, self,
stream, stream,
...@@ -1024,7 +1024,7 @@ ...@@ -1024,7 +1024,7 @@
# monkeypatch unittest and doctest (ouch !) # monkeypatch unittest and doctest (ouch !)
unittest._TextTestResult = SkipAwareTestResult unittest.TextTestResult = SkipAwareTestResult
unittest.TextTestRunner = SkipAwareTextTestRunner unittest.TextTestRunner = SkipAwareTextTestRunner
unittest.TestLoader = NonStrictTestLoader unittest.TestLoader = NonStrictTestLoader
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment