mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
convert usage of fail* to assert*
This commit is contained in:
parent
be96cf608f
commit
5c8da86f3a
268 changed files with 5017 additions and 5017 deletions
|
@ -290,7 +290,7 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
|
|||
z.close()
|
||||
zi = zipimport.zipimporter(TEMP_ZIP)
|
||||
self.assertEquals(data, zi.get_data(name))
|
||||
self.assert_('zipimporter object' in repr(zi))
|
||||
self.assertTrue('zipimporter object' in repr(zi))
|
||||
finally:
|
||||
z.close()
|
||||
os.remove(TEMP_ZIP)
|
||||
|
@ -372,7 +372,7 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
|
|||
|
||||
s = StringIO.StringIO()
|
||||
print_tb(tb, 1, s)
|
||||
self.failUnless(s.getvalue().endswith(raise_src))
|
||||
self.assertTrue(s.getvalue().endswith(raise_src))
|
||||
else:
|
||||
raise AssertionError("This ought to be impossible")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue