Replace assertRegexpMatches with assertregex
assertRegexpMatches is deprecated on Python 3. Change-Id: I593a1628ced07557099b48f6892f49376c9f0e13
This commit is contained in:
parent
30eb190995
commit
bf2c54f490
|
@ -1682,7 +1682,7 @@ class VersionTests(SqlMigrateBase):
|
|||
'^[0-9]{3,}_PREFIX_|^[0-9]{3,}_placeholder.py|^__init__.py')
|
||||
pattern = pattern.replace('PREFIX', prefix)
|
||||
msg = 'Missing required prefix %s in $file_name' % prefix
|
||||
self.assertRegexpMatches(file_name, pattern, msg)
|
||||
self.assertRegex(file_name, pattern, msg)
|
||||
|
||||
|
||||
class MigrationValidation(SqlMigrateBase, unit.TestCase):
|
||||
|
|
Loading…
Reference in New Issue