aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_socks.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-06-24 16:24:43 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-06-25 00:14:12 +0530
commit14f25df2b6233553e968df023430ca96c0b1df9f (patch)
treec611d59d4462820a9e99726b9179811ed88a35b8 /test/test_socks.py
parent54007a45f11ed730352324289b714baefd2901eb (diff)
downloadhypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.tar.lz
hypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.tar.xz
hypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.zip
[compat] Remove deprecated functions from core code
Diffstat (limited to 'test/test_socks.py')
-rw-r--r--test/test_socks.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test_socks.py b/test/test_socks.py
index 159faf58e..6651290d2 100644
--- a/test/test_socks.py
+++ b/test/test_socks.py
@@ -13,7 +13,6 @@ import subprocess
import urllib.request
from test.helper import FakeYDL, get_params, is_download_test
-from yt_dlp.compat import compat_str
@is_download_test
@@ -102,13 +101,13 @@ class TestSocks(unittest.TestCase):
return ydl.urlopen('http://yt-dl.org/ip').read().decode()
def test_socks4(self):
- self.assertTrue(isinstance(self._get_ip('socks4'), compat_str))
+ self.assertTrue(isinstance(self._get_ip('socks4'), str))
def test_socks4a(self):
- self.assertTrue(isinstance(self._get_ip('socks4a'), compat_str))
+ self.assertTrue(isinstance(self._get_ip('socks4a'), str))
def test_socks5(self):
- self.assertTrue(isinstance(self._get_ip('socks5'), compat_str))
+ self.assertTrue(isinstance(self._get_ip('socks5'), str))
if __name__ == '__main__':