We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cf0ca8 commit 8cb3e0cCopy full SHA for 8cb3e0c
git/test/test_exc.py
@@ -92,7 +92,7 @@ def test_CommandError_unicode(self, case):
92
if subs is not None:
93
# Substrings (must) already contain opening `'`.
94
subs = "(?<!')%s(?!')" % re.escape(subs)
95
- self.assertRegexpMatches(s, subs)
+ self.assertRegex(s, subs)
96
97
if not stream:
98
c = cls(argv, cause)
0 commit comments