aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_downloader_http.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_downloader_http.py')
-rw-r--r--test/test_downloader_http.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_downloader_http.py b/test/test_downloader_http.py
index dac770758..cce7c59e2 100644
--- a/test/test_downloader_http.py
+++ b/test/test_downloader_http.py
@@ -1,17 +1,18 @@
#!/usr/bin/env python3
+
# Allow direct execution
import os
import sys
import unittest
-import http.server
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+import http.server
import re
import threading
-from test.helper import http_server_port, try_rm
+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