]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - test/test_compat.py
[test_compat] Remove unused import
[youtube-dl.git] / test / test_compat.py
index afe6bd5282ee857f409ef275459dcb4cc5f1f274..9adf757631ce0df26295979af10cd2fac7dcc9fd 100644 (file)
@@ -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