summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):