From: Tim Peters Date: Mon, 23 Dec 2002 16:50:58 +0000 (+0000) Subject: Don't rebind True and False. X-Git-Tag: v2.3c1~2915 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cae330e44951bdcb7153e306cf95818c5eb07633;p=thirdparty%2FPython%2Fcpython.git Don't rebind True and False. --- diff --git a/Lib/test/test_iter.py b/Lib/test/test_iter.py index 62a8d02f8d10..383fce344a4d 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):