Replace assertRegexpMatches with assertregex

assertRegexpMatches is deprecated on Python 3.

Change-Id: I593a1628ced07557099b48f6892f49376c9f0e13
This commit is contained in:
jolie 2017-09-18 16:00:36 +08:00
parent 30eb190995
commit bf2c54f490
1 changed files with 1 additions and 1 deletions

View File

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