summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/test
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/test
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/test')
-rw-r--r--Lib/unittest/test/test_assertions.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/unittest/test/test_assertions.py b/Lib/unittest/test/test_assertions.py
index 69572ee..df2e89e 100644
--- a/Lib/unittest/test/test_assertions.py
+++ b/Lib/unittest/test/test_assertions.py
@@ -92,15 +92,15 @@ class Test_Assertions(unittest.TestCase):
else:
self.fail("assertRaises() didn't let exception pass through")
- def testAssertNotRegexMatches(self):
- self.assertNotRegexMatches('Ala ma kota', r'r+')
+ def testAssertNotRegex(self):
+ self.assertNotRegex('Ala ma kota', r'r+')
try:
- self.assertNotRegexMatches('Ala ma kota', r'k.t', 'Message')
+ self.assertNotRegex('Ala ma kota', r'k.t', 'Message')
except self.failureException as e:
self.assertIn("'kot'", e.args[0])
self.assertIn('Message', e.args[0])
else:
- self.fail('assertNotRegexMatches should have failed.')
+ self.fail('assertNotRegex should have failed.')
class TestLongMessage(unittest.TestCase):