aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-05-09 22:00:14 +0600
committerSergey M․ <dstftw@gmail.com>2016-05-09 22:00:14 +0600
commit20cfdcc910d0bc2ee4b0ee38bdf5e6ecb67e5731 (patch)
tree9abc739df6949b1256e3f3f49102bc9a79ace390 /test
parent129263875403841da485ac74b09960d862d23f63 (diff)
[test_compat] Avoid None values for compat_setenv
Diffstat (limited to 'test')
-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