mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Merged revisions 79502 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79502 | antoine.pitrou | 2010-03-30 20:49:45 +0200 (mar., 30 mars 2010) | 4 lines Issue #8248: Add some tests for the bool type. Patch by Gregory Nofi. ........
This commit is contained in:
parent
25cd7eb9a1
commit
503ab33e54
5 changed files with 23 additions and 0 deletions
|
@ -39,6 +39,8 @@ class BaseTestCase(unittest.TestCase):
|
|||
self.assertEqual(-7 .__index__(), -7)
|
||||
self.assertEqual(self.o.__index__(), 4)
|
||||
self.assertEqual(self.n.__index__(), 5)
|
||||
self.assertEqual(True.__index__(), 1)
|
||||
self.assertEqual(False.__index__(), 0)
|
||||
|
||||
def test_subclasses(self):
|
||||
r = list(range(10))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue