mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
convert old fail* assertions to assert*
This commit is contained in:
parent
98d23f2e06
commit
c9c0f201fe
275 changed files with 4540 additions and 4540 deletions
|
@ -9,11 +9,11 @@ from fnmatch import fnmatch, fnmatchcase
|
|||
class FnmatchTestCase(unittest.TestCase):
|
||||
def check_match(self, filename, pattern, should_match=1):
|
||||
if should_match:
|
||||
self.assert_(fnmatch(filename, pattern),
|
||||
self.assertTrue(fnmatch(filename, pattern),
|
||||
"expected %r to match pattern %r"
|
||||
% (filename, pattern))
|
||||
else:
|
||||
self.assert_(not fnmatch(filename, pattern),
|
||||
self.assertTrue(not fnmatch(filename, pattern),
|
||||
"expected %r not to match pattern %r"
|
||||
% (filename, pattern))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue