sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-from youtube_dl.utils import get_filesystem_encoding
from youtube_dl.compat import (
compat_getenv,
compat_setenv,
test_str = 'C:\Documents and Settings\ัะตัั\Application Data'
compat_setenv('HOME', test_str)
self.assertEqual(compat_expanduser('~'), test_str)
- compat_setenv('HOME', old_home)
+ compat_setenv('HOME', old_home or '')
def test_all_present(self):
import youtube_dl.compat