summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/case.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-12-10 02:32:05 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-12-10 02:32:05 (GMT)
commit8f77630747346842979d21a144d2a28963db91da (patch)
tree6bfee44602cad83ab68f55b4bf87d798c08599b1 /Lib/unittest/case.py
parent522cc0a9a14dd82fa959d55b12146a00932e0826 (diff)
downloadcpython-8f77630747346842979d21a144d2a28963db91da.zip
cpython-8f77630747346842979d21a144d2a28963db91da.tar.gz
cpython-8f77630747346842979d21a144d2a28963db91da.tar.bz2
#10273: Remove a "Matches" that I missed in r86910. Thanks to RDM for noticing it.
Diffstat (limited to 'Lib/unittest/case.py')
-rw-r--r--Lib/unittest/case.py2
1 files changed, 1 insertions, 1 deletions
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 @@ class TestCase(object):
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)