aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2019-11-08 20:43:26 -0800
committerZac Medico <zmedico@gentoo.org>2019-11-08 20:43:48 -0800
commit240060f32e3a21233a89f751e7f42b0bfa9a1712 (patch)
tree82bc048fe5316d67673703a77e6145996a6254d1
parentrepoman: Fix unsafe string interpolation. (diff)
downloadgentoo-portage-240060f32e3a21233a89f751e7f42b0bfa9a1712.tar.xz
gentoo-portage-240060f32e3a21233a89f751e7f42b0bfa9a1712.zip
CommitMessageVerificationTest: fix DeprecationWarning for assertRegexpMatches
Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--repoman/lib/repoman/tests/commit/test_commitmsg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/repoman/lib/repoman/tests/commit/test_commitmsg.py b/repoman/lib/repoman/tests/commit/test_commitmsg.py
index a734c1065..83fa0f37c 100644
--- a/repoman/lib/repoman/tests/commit/test_commitmsg.py
+++ b/repoman/lib/repoman/tests/commit/test_commitmsg.py
@@ -29,7 +29,7 @@ Expected: /%s/''' % (commitmsg, reason_re))
Expected: /%s/
Errors:
%s''' % (commitmsg, reason_re, expl))
- self.assertRegexpMatches(expl, reason_re,
+ (self.assertRegex if hasattr(self, 'assertRegex') else self.assertRegexpMatches)(expl, reason_re,
'''Commit message verification did not return expected error, for:
%s