mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[docs] Misc Cleanup (#8977)
Closes #8355, #8944 Authored by: bashonly, Grub4k, Arthurszzz, seproDev, pukkandan Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com> Co-authored-by: bashonly <bashonly@protonmail.com> Co-authored-by: Arthurszzz <minecraftgamerarthur@gmail.com> Co-authored-by: Simon Sawicki <accounts@grub4k.xyz> Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
		| @@ -45,7 +45,7 @@ class TestExecution(unittest.TestCase): | ||||
|             self.assertTrue(os.path.exists(LAZY_EXTRACTORS)) | ||||
| 
 | ||||
|             _, stderr = self.run_yt_dlp(opts=('-s', 'test:')) | ||||
|             # `MIN_RECOMMENDED` emits a deprecated feature warning for deprecated python versions | ||||
|             # `MIN_RECOMMENDED` emits a deprecated feature warning for deprecated Python versions | ||||
|             if stderr and stderr.startswith('Deprecated Feature: Support for Python'): | ||||
|                 stderr = '' | ||||
|             self.assertFalse(stderr) | ||||
|   | ||||
| @@ -2386,7 +2386,7 @@ Line 1 | ||||
|         self.assertEqual(traverse_obj(etree, '//year/text()'), ['2008', '2011', '2011'], | ||||
|                          msg='`text()` at end of path should give the inner text') | ||||
|         self.assertEqual(traverse_obj(etree, '//*[@direction]/@direction'), ['E', 'W', 'N', 'W', 'E'], | ||||
|                          msg='full python xpath features should be supported') | ||||
|                          msg='full Python xpath features should be supported') | ||||
|         self.assertEqual(traverse_obj(etree, (0, '@name')), 'Liechtenstein', | ||||
|                          msg='special transformations should act on current element') | ||||
|         self.assertEqual(traverse_obj(etree, ('country', 0, ..., 'text()', {int_or_none})), [1, 2008, 141100], | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan