Browse Source

[test_compat] Avoid None values for compat_setenv

totalwebcasting
Sergey M․ 9 years ago
parent
commit
20cfdcc910
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test/test_compat.py

+ 1
- 1
test/test_compat.py 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


Loading…
Cancel
Save