diff options
Diffstat (limited to 'test/test_post_hooks.py')
-rw-r--r-- | test/test_post_hooks.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/test_post_hooks.py b/test/test_post_hooks.py index 1555a23e0..e84a08f29 100644 --- a/test/test_post_hooks.py +++ b/test/test_post_hooks.py @@ -1,20 +1,19 @@ #!/usr/bin/env python3 - -from __future__ import unicode_literals - import os import sys import unittest + sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) -from test.helper import get_params, try_rm, is_download_test +from test.helper import get_params, is_download_test, try_rm + import yt_dlp.YoutubeDL from yt_dlp.utils import DownloadError class YoutubeDL(yt_dlp.YoutubeDL): def __init__(self, *args, **kwargs): - super(YoutubeDL, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) self.to_stderr = self.to_screen |