summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-12-23 16:50:58 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-12-23 16:50:58 (GMT)
commitcae330e44951bdcb7153e306cf95818c5eb07633 (patch)
treed8ee9fcbec90a74bc50c3e041896a18c32f8514a /Lib/test
parent9c8a0866c924ef92221a2c6e55f1774ee6feb408 (diff)
downloadcpython-cae330e44951bdcb7153e306cf95818c5eb07633.zip
cpython-cae330e44951bdcb7153e306cf95818c5eb07633.tar.gz
cpython-cae330e44951bdcb7153e306cf95818c5eb07633.tar.bz2
Don't rebind True and False.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_iter.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_iter.py b/Lib/test/test_iter.py
index 62a8d02..383fce3 100644
--- a/Lib/test/test_iter.py
+++ b/Lib/test/test_iter.py
@@ -329,8 +329,8 @@ class TestCase(unittest.TestCase):
self.truth = truth
def __nonzero__(self):
return self.truth
- True = Boolean(1)
- False = Boolean(0)
+ bTrue = Boolean(1)
+ bFalse = Boolean(0)
class Seq:
def __init__(self, *args):
@@ -351,9 +351,9 @@ class TestCase(unittest.TestCase):
raise StopIteration
return SeqIter(self.vals)
- seq = Seq(*([True, False] * 25))
- self.assertEqual(filter(lambda x: not x, seq), [False]*25)
- self.assertEqual(filter(lambda x: not x, iter(seq)), [False]*25)
+ seq = Seq(*([bTrue, bFalse] * 25))
+ self.assertEqual(filter(lambda x: not x, seq), [bFalse]*25)
+ self.assertEqual(filter(lambda x: not x, iter(seq)), [bFalse]*25)
# Test max() and min()'s use of iterators.
def test_builtin_max_min(self):