Skip to content

Commit

Permalink
[test/helper] Do not use deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
phihag committed Jul 22, 2014
1 parent eae12e3 commit 0fd7fd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ def expect_info_dict(self, expected_dict, got_dict):


def assertRegexpMatches(self, text, regexp, msg=None):
if hasattr(self, 'assertRegexpMatches'):
return self.assertRegexpMatches(text, regexp, msg)
if hasattr(self, 'assertRegexp'):
return self.assertRegexp(text, regexp, msg)
else:
m = re.match(regexp, text)
if not m:
Expand Down

0 comments on commit 0fd7fd7

Please sign in to comment.