aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_compat.py2
1 files changed, 1 insertions, 1 deletions
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