Replace assertRegexpMatches with assertRegex

- #259

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2019-12-10 07:44:07 +01:00
parent 9dd8257cc0
commit 34a152c794
8 changed files with 44 additions and 44 deletions

View file

@ -43,7 +43,7 @@ class TestVersion(TestCase):
def test_version_option(self):
"""Verify that 'timew --version' returns something valid"""
code, out, err = self.t("--version")
self.assertRegexpMatches(out, r'^\d\.\d+\.\d+(\.\w+)?$')
self.assertRegex(out, r'^\d\.\d+\.\d+(\.\w+)?$')
if __name__ == "__main__":