Skip to content

Commit 8cb3e0c

Browse files
committed
Replace deprecated assertRegexpMatches alias with assertRegex
In TExc.test_CommandError_unicode
1 parent 7cf0ca8 commit 8cb3e0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/test/test_exc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_CommandError_unicode(self, case):
9292
if subs is not None:
9393
# Substrings (must) already contain opening `'`.
9494
subs = "(?<!')%s(?!')" % re.escape(subs)
95-
self.assertRegexpMatches(s, subs)
95+
self.assertRegex(s, subs)
9696

9797
if not stream:
9898
c = cls(argv, cause)

0 commit comments

Comments
 (0)