#10273: Remove a "Matches" that I missed in r86910. Thanks to RDM for noticing it.
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py
index 227879c..0ad7857 100644
--- a/Lib/unittest/case.py
+++ b/Lib/unittest/case.py
@@ -1127,7 +1127,7 @@
msg = '%s: %r not found in %r' % (msg, expected_regex.pattern, text)
raise self.failureException(msg)
- def assertNotRegexMatches(self, text, unexpected_regex, msg=None):
+ def assertNotRegex(self, text, unexpected_regex, msg=None):
"""Fail the test if the text matches the regular expression."""
if isinstance(unexpected_regex, (str, bytes)):
unexpected_regex = re.compile(unexpected_regex)