Explorar o código

[test/helper] Do not use deprecated method

Philipp Hagemeister %!s(int64=11) %!d(string=hai) anos
pai
achega
0fd7fd71b4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      test/helper.py

+ 2 - 2
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: