mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[test/helper] Do not use deprecated method
This commit is contained in:
		| @@ -137,8 +137,8 @@ def expect_info_dict(self, expected_dict, got_dict): | |||||||
|  |  | ||||||
|  |  | ||||||
| def assertRegexpMatches(self, text, regexp, msg=None): | def assertRegexpMatches(self, text, regexp, msg=None): | ||||||
|     if hasattr(self, 'assertRegexpMatches'): |     if hasattr(self, 'assertRegexp'): | ||||||
|         return self.assertRegexpMatches(text, regexp, msg) |         return self.assertRegexp(text, regexp, msg) | ||||||
|     else: |     else: | ||||||
|         m = re.match(regexp, text) |         m = re.match(regexp, text) | ||||||
|         if not m: |         if not m: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister