mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +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
|
|
@ -70,7 +70,7 @@ class CommandTestCase(unittest.TestCase):
|
|||
|
||||
cmd.option2 = None
|
||||
cmd.ensure_string('option2', 'xxx')
|
||||
self.assert_(hasattr(cmd, 'option2'))
|
||||
self.assertTrue(hasattr(cmd, 'option2'))
|
||||
|
||||
cmd.option3 = 1
|
||||
self.assertRaises(DistutilsOptionError, cmd.ensure_string, 'option3')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue