aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-09-01 16:49:03 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-09-01 16:49:03 +0530
commitd2c8aadf799a63aaa7da81ae03052b1ec2addd20 (patch)
treeb6c1e217d7098bea54c4de65ba0615c6ef93936f /test
parent1ac7f461845b3f9c0c3a2e6a1308bf82d3e8e55a (diff)
downloadhypervideo-pre-d2c8aadf799a63aaa7da81ae03052b1ec2addd20.tar.lz
hypervideo-pre-d2c8aadf799a63aaa7da81ae03052b1ec2addd20.tar.xz
hypervideo-pre-d2c8aadf799a63aaa7da81ae03052b1ec2addd20.zip
[cleanup] Misc
Closes #4710, Closes #4754, Closes #4723 Authored by: pukkandan, MrRawes, DavidH-2022
Diffstat (limited to 'test')
-rw-r--r--test/test_YoutubeDL.py2
-rw-r--r--test/test_jsinterp.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py
index 49dc2c198..426e52305 100644
--- a/test/test_YoutubeDL.py
+++ b/test/test_YoutubeDL.py
@@ -668,7 +668,7 @@ class TestYoutubeDL(unittest.TestCase):
def test_prepare_outtmpl_and_filename(self):
def test(tmpl, expected, *, info=None, **params):
params['outtmpl'] = tmpl
- ydl = YoutubeDL(params)
+ ydl = FakeYDL(params)
ydl._num_downloads = 1
self.assertEqual(ydl.validate_outtmpl(tmpl), None)
diff --git a/test/test_jsinterp.py b/test/test_jsinterp.py
index b46d0949d..92ef532f5 100644
--- a/test/test_jsinterp.py
+++ b/test/test_jsinterp.py
@@ -387,7 +387,7 @@ class TestJSInterpreter(unittest.TestCase):
''')
self.assertEqual(jsi.call_function('x').flags & re.I, re.I)
- jsi = JSInterpreter('''
+ jsi = JSInterpreter(R'''
function x() { let a=/,][}",],()}(\[)/; return a; }
''')
self.assertEqual(jsi.call_function('x').pattern, r',][}",],()}(\[)')