mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[test] Use pytest instead of nosetests (#482)
				
					
				
			`nosetests` is no longer being maintained : https://github.com/nose-devs/nose/issues/1099 and will stop working in py 3.10 as can be seen in #480
This commit is contained in:
		| @@ -7,7 +7,7 @@ import sys | ||||
| import unittest | ||||
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||||
|  | ||||
| from test.helper import FakeYDL | ||||
| from test.helper import FakeYDL, is_download_test | ||||
|  | ||||
|  | ||||
| from yt_dlp.extractor import ( | ||||
| @@ -17,6 +17,7 @@ from yt_dlp.extractor import ( | ||||
| ) | ||||
|  | ||||
|  | ||||
| @is_download_test | ||||
| class TestYoutubeLists(unittest.TestCase): | ||||
|     def assertIsPlaylist(self, info): | ||||
|         """Make sure the info has '_type' set to 'playlist'""" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan