projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1292638
)
[test_compat] Avoid None values for compat_setenv
author
Sergey M․
<dstftw@gmail.com>
Mon, 9 May 2016 16:00:14 +0000
(22:00 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 9 May 2016 16:00:14 +0000
(22:00 +0600)
test/test_compat.py
patch
|
blob
|
history
diff --git
a/test/test_compat.py
b/test/test_compat.py
index afe6bd5282ee857f409ef275459dcb4cc5f1f274..b208142493a5b868cb0bc1ffbb7c1e1f32d922fe 100644
(file)
--- 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