summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-03-26 03:24:25 +0700
committerSergey M․ <dstftw@gmail.com>2017-03-26 03:24:25 +0700
commit942b44a0525f677924c660bcb00902d705d91fc2 (patch)
tree3414a90781f5ceb8e1ced1e08f30dd6cfae79fc9
parenta426ef6d783038e570db252a2e9e72800ffcb381 (diff)
downloadyoutube-dl-942b44a0525f677924c660bcb00902d705d91fc2.tar.gz
youtube-dl-942b44a0525f677924c660bcb00902d705d91fc2.tar.xz
youtube-dl-942b44a0525f677924c660bcb00902d705d91fc2.zip
[test_compat] Do not use dash in env variables' names
-rw-r--r--test/test_compat.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_compat.py b/test/test_compat.py
index b57424948..d6c54e135 100644
--- a/test/test_compat.py
+++ b/test/test_compat.py
@@ -27,11 +27,11 @@ from youtube_dl.compat import (
 class TestCompat(unittest.TestCase):
     def test_compat_getenv(self):
         test_str = 'тест'
-        compat_setenv('YOUTUBE-DL-TEST', test_str)
-        self.assertEqual(compat_getenv('YOUTUBE-DL-TEST'), test_str)
+        compat_setenv('YOUTUBE_DL_COMPAT_GETENV', test_str)
+        self.assertEqual(compat_getenv('YOUTUBE_DL_COMPAT_GETENV'), test_str)
 
     def test_compat_setenv(self):
-        test_var = 'YOUTUBE-DL-TEST'
+        test_var = 'YOUTUBE_DL_COMPAT_SETENV'
         test_str = 'тест'
         compat_setenv(test_var, test_str)
         compat_getenv(test_var)