Browse Source

[test/helper] Do not use deprecated method

master
Philipp Hagemeister 10 years ago
parent
commit
0fd7fd71b4
1 changed files with 2 additions and 2 deletions
  1. 4
      test/helper.py

4
test/helper.py

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

Loading…
Cancel
Save