diff options
author | Jack Diederich <jackdied@gmail.com> | 2006-11-28 19:15:13 +0000 |
---|---|---|
committer | Jack Diederich <jackdied@gmail.com> | 2006-11-28 19:15:13 +0000 |
commit | 4dafcc4ece09c2a60473bb109513de4e7d2c2b11 (patch) | |
tree | 32be8af9dd16e1ea407bf008c92d62f7cd7539bd /Lib/test/test_iter.py | |
parent | dfc9d4f7aa38a3961847c034532e39f05a569f54 (diff) | |
download | cpython-git-4dafcc4ece09c2a60473bb109513de4e7d2c2b11.tar.gz |
- patch #1600346 submitted by Tomer Filiba
- Renamed nb_nonzero slots to nb_bool
- Renamed __nonzero__ methods to __bool__
- update core, lib, docs, and tests to match
Diffstat (limited to 'Lib/test/test_iter.py')
-rw-r--r-- | Lib/test/test_iter.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_iter.py b/Lib/test/test_iter.py index 0ac34c8220..76af429de1 100644 --- a/Lib/test/test_iter.py +++ b/Lib/test/test_iter.py @@ -327,10 +327,10 @@ class TestCase(unittest.TestCase): class Boolean: def __init__(self, truth): self.truth = truth - def __nonzero__(self): + def __bool__(self): return self.truth - bTrue = Boolean(1) - bFalse = Boolean(0) + bTrue = Boolean(True) + bFalse = Boolean(False) class Seq: def __init__(self, *args): |