mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[skip travis] renaming
to avoid using same folder when using pip install for example
This commit is contained in:
		| @@ -15,7 +15,7 @@ import io | ||||
| import json | ||||
| import xml.etree.ElementTree | ||||
|  | ||||
| from youtube_dl.utils import ( | ||||
| from youtube_dlc.utils import ( | ||||
|     age_restricted, | ||||
|     args_to_str, | ||||
|     encode_base_n, | ||||
| @@ -105,7 +105,7 @@ from youtube_dl.utils import ( | ||||
|     cli_bool_option, | ||||
|     parse_codecs, | ||||
| ) | ||||
| from youtube_dl.compat import ( | ||||
| from youtube_dlc.compat import ( | ||||
|     compat_chr, | ||||
|     compat_etree_fromstring, | ||||
|     compat_getenv, | ||||
| @@ -240,12 +240,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') | ||||
|         compat_setenv('youtube_dlc_EXPATH_PATH', 'expanded') | ||||
|         self.assertEqual(expand_path(env('youtube_dlc_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_dlc_EXPATH_PATH')), | ||||
|             '%s/expanded' % compat_getenv('HOME')) | ||||
|  | ||||
|     def test_prepend_extension(self): | ||||
| @@ -1388,8 +1388,8 @@ Line 1 | ||||
|         self.assertEqual(caesar('ebg', 'acegik', -2), 'abc') | ||||
|  | ||||
|     def test_rot47(self): | ||||
|         self.assertEqual(rot47('youtube-dl'), r'J@FEF36\5=') | ||||
|         self.assertEqual(rot47('YOUTUBE-DL'), r'*~&%&qt\s{') | ||||
|         self.assertEqual(rot47('youtube-dlc'), r'J@FEF36\5=') | ||||
|         self.assertEqual(rot47('youtube-dlc'), r'*~&%&qt\s{') | ||||
|  | ||||
|     def test_urshift(self): | ||||
|         self.assertEqual(urshift(3, 1), 1) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Unknown
					Unknown