mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +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
|
@ -86,8 +86,8 @@ class PropertyTests(unittest.TestCase):
|
|||
self.assertEqual(base.spam, 10)
|
||||
self.assertEqual(base._spam, 10)
|
||||
delattr(base, "spam")
|
||||
self.assert_(not hasattr(base, "spam"))
|
||||
self.assert_(not hasattr(base, "_spam"))
|
||||
self.assertTrue(not hasattr(base, "spam"))
|
||||
self.assertTrue(not hasattr(base, "_spam"))
|
||||
base.spam = 20
|
||||
self.assertEqual(base.spam, 20)
|
||||
self.assertEqual(base._spam, 20)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue