summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2007-12-13 00:08:37 (GMT)
committerRaymond Hettinger <python@rcn.com>2007-12-13 00:08:37 (GMT)
commitadf9ffdfbe0fb00f5a47444c1dc53eb280d0bd0a (patch)
treed006a49e33601df220458519b651e15660108b26 /Lib
parent842c178442a9b9b855d9773dbe2e8ac3d6d79895 (diff)
downloadcpython-adf9ffdfbe0fb00f5a47444c1dc53eb280d0bd0a.zip
cpython-adf9ffdfbe0fb00f5a47444c1dc53eb280d0bd0a.tar.gz
cpython-adf9ffdfbe0fb00f5a47444c1dc53eb280d0bd0a.tar.bz2
Fix bug 1604. deque.__init__() did not clear existing contents like list.__init__. Not a backport candidate.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_deque.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_deque.py b/Lib/test/test_deque.py
index aeb6d17..e0ca746 100644
--- a/Lib/test/test_deque.py
+++ b/Lib/test/test_deque.py
@@ -29,8 +29,8 @@ class MutateCmp:
class TestBasic(unittest.TestCase):
def test_basics(self):
- d = deque(xrange(100))
- d.__init__(xrange(100, 200))
+ d = deque(xrange(-5125, -5000))
+ d.__init__(xrange(200))
for i in xrange(200, 400):
d.append(i)
for i in reversed(xrange(-200, 0)):
@@ -451,8 +451,8 @@ class DequeWithBadIter(deque):
class TestSubclass(unittest.TestCase):
def test_basics(self):
- d = Deque(xrange(100))
- d.__init__(xrange(100, 200))
+ d = Deque(xrange(25))
+ d.__init__(xrange(200))
for i in xrange(200, 400):
d.append(i)
for i in reversed(xrange(-200, 0)):