Browse Source

Replace assertRegexpMatches with assertregex

assertRegexpMatches is deprecated on Python 3.

Change-Id: I593a1628ced07557099b48f6892f49376c9f0e13
changes/73/504873/1
jolie 4 years ago
parent
commit
bf2c54f490
  1. 2
      keystone/tests/unit/test_sql_upgrade.py

2
keystone/tests/unit/test_sql_upgrade.py

@ -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…
Cancel
Save