aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_downloader_http.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-07-15 11:41:08 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-07-15 16:18:34 +0530
commit1b392f905d20ef1f1b300b180f867d43c9ce49b8 (patch)
tree06fb8578404d5775e8be103dfef1a111521c2745 /test/test_downloader_http.py
parent1ba6fe9db5f660d5538588315c23ad6cf0371c5f (diff)
downloadhypervideo-pre-1b392f905d20ef1f1b300b180f867d43c9ce49b8.tar.lz
hypervideo-pre-1b392f905d20ef1f1b300b180f867d43c9ce49b8.tar.xz
hypervideo-pre-1b392f905d20ef1f1b300b180f867d43c9ce49b8.zip
[utils] Add temporary shim for logging
Related: #5680, #7517
Diffstat (limited to 'test/test_downloader_http.py')
-rw-r--r--test/test_downloader_http.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/test/test_downloader_http.py b/test/test_downloader_http.py
index 381b2583c..099ec2fff 100644
--- a/test/test_downloader_http.py
+++ b/test/test_downloader_http.py
@@ -16,6 +16,7 @@ from test.helper import http_server_port, try_rm
from yt_dlp import YoutubeDL
from yt_dlp.downloader.http import HttpFD
from yt_dlp.utils import encodeFilename
+from yt_dlp.utils._utils import _YDLLogger as FakeLogger
TEST_DIR = os.path.dirname(os.path.abspath(__file__))
@@ -67,17 +68,6 @@ class HTTPTestRequestHandler(http.server.BaseHTTPRequestHandler):
assert False
-class FakeLogger:
- def debug(self, msg):
- pass
-
- def warning(self, msg):
- pass
-
- def error(self, msg):
- pass
-
-
class TestHttpFD(unittest.TestCase):
def setUp(self):
self.httpd = http.server.HTTPServer(