1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[test_compat] Avoid None values for compat_setenv

This commit is contained in:
Sergey M․ 2016-05-09 22:00:14 +06:00
parent 1292638754
commit 20cfdcc910
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -42,7 +42,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