X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=test%2Ftest_compat.py;h=9adf757631ce0df26295979af10cd2fac7dcc9fd;hb=fad7bbec3a1fb62964c8e6637dfd535fabe9c133;hp=afe6bd5282ee857f409ef275459dcb4cc5f1f274;hpb=129263875403841da485ac74b09960d862d23f63;p=youtube-dl.git diff --git a/test/test_compat.py b/test/test_compat.py index afe6bd528..9adf75763 100644 --- a/test/test_compat.py +++ b/test/test_compat.py @@ -10,7 +10,6 @@ import unittest 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, @@ -42,7 +41,7 @@ class TestCompat(unittest.TestCase): 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