1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 00:54:31 +01:00

[test/helper] Do not use deprecated method

This commit is contained in:
Philipp Hagemeister 2014-07-23 01:43:46 +02:00
parent eae12e3fe3
commit 0fd7fd71b4

View File

@ -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: