From: Sergey M․ Date: Mon, 9 May 2016 16:00:14 +0000 (+0600) Subject: [test_compat] Avoid None values for compat_setenv X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=20cfdcc910d0bc2ee4b0ee38bdf5e6ecb67e5731;p=youtube-dl [test_compat] Avoid None values for compat_setenv --- diff --git a/test/test_compat.py b/test/test_compat.py index afe6bd528..b20814249 100644 --- a/test/test_compat.py +++ b/test/test_compat.py @@ -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