diff options
author | Sergey M․ <[email protected]> | 2017-03-26 03:22:48 +0700 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2017-03-26 03:22:48 +0700 |
commit | a426ef6d783038e570db252a2e9e72800ffcb381 (patch) | |
tree | 242aa2d34c9fffc642133dfefba2c201e353df1d /test | |
parent | 41c5e60dd57c0df10f4aa05dee95af2bbc1dc8dd (diff) | |
download | youtube-dl-a426ef6d783038e570db252a2e9e72800ffcb381.tar.gz youtube-dl-a426ef6d783038e570db252a2e9e72800ffcb381.zip |
[test_utils] Do not use dash in env variables' names
Diffstat (limited to 'test')
-rw-r--r-- | test/test_utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index b9a02666d..aa4569b81 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -221,12 +221,12 @@ class TestUtil(unittest.TestCase): def env(var): return '%{0}%'.format(var) if sys.platform == 'win32' else '${0}'.format(var) - compat_setenv('YOUTUBE-DL-EXPATH-PATH', 'expanded') - self.assertEqual(expand_path(env('YOUTUBE-DL-EXPATH-PATH')), 'expanded') - self.assertEqual(expand_path(env('HOMEPATH')), compat_getenv('HOMEPATH')) + compat_setenv('YOUTUBE_DL_EXPATH_PATH', 'expanded') + self.assertEqual(expand_path(env('YOUTUBE_DL_EXPATH_PATH')), 'expanded') + self.assertEqual(expand_path(env('HOME')), compat_getenv('HOME')) self.assertEqual(expand_path('~'), compat_getenv('HOME')) self.assertEqual( - expand_path('~/%s' % env('YOUTUBE-DL-EXPATH-PATH')), + expand_path('~/%s' % env('YOUTUBE_DL_EXPATH_PATH')), '%s/expanded' % compat_getenv('HOME')) def test_prepend_extension(self): |