diff options
author | Raymond Hettinger <python@rcn.com> | 2004-02-07 02:45:22 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-02-07 02:45:22 (GMT) |
commit | c058fd14a9abdffff4f65ebd87a042fad6e68a2e (patch) | |
tree | 41f0a0e596a48de87bd46fab96b07de585a45380 /Lib | |
parent | b5ba8d749d66403edab1eaf9f3f83006134c0a67 (diff) | |
download | cpython-c058fd14a9abdffff4f65ebd87a042fad6e68a2e.zip cpython-c058fd14a9abdffff4f65ebd87a042fad6e68a2e.tar.gz cpython-c058fd14a9abdffff4f65ebd87a042fad6e68a2e.tar.bz2 |
* Fix ref counting in extend() and extendleft().
* Let deques support reversed().
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_deque.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_deque.py b/Lib/test/test_deque.py index 51ce7b0..5f2417f 100644 --- a/Lib/test/test_deque.py +++ b/Lib/test/test_deque.py @@ -182,6 +182,10 @@ class TestBasic(unittest.TestCase): self.assertNotEqual(id(d), id(e)) self.assertEqual(list(d), list(e)) + def test_reversed(self): + for s in ('abcd', xrange(2000)): + self.assertEqual(list(reversed(deque(s))), list(reversed(s))) + def R(seqn): 'Regular generator' for i in seqn: |