diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-03-30 18:49:45 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-03-30 18:49:45 +0000 |
commit | 6032c2506376c76ae15064e64e077349c00e1c78 (patch) | |
tree | 59c1fa27a29bb25fa27e1f6ff3dc149cbbead358 /Lib/test/test_index.py | |
parent | 7e213255cee76f692dded963ec726b39319646c0 (diff) | |
download | cpython-git-6032c2506376c76ae15064e64e077349c00e1c78.tar.gz |
Issue #8248: Add some tests for the bool type. Patch by Gregory Nofi.
Diffstat (limited to 'Lib/test/test_index.py')
-rw-r--r-- | Lib/test/test_index.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_index.py b/Lib/test/test_index.py index abc80418a4..a92b4428a3 100644 --- a/Lib/test/test_index.py +++ b/Lib/test/test_index.py @@ -49,6 +49,8 @@ class BaseTestCase(unittest.TestCase): self.assertEqual(-7L.__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 = range(10) |