Author: Reuben Cummings <[email protected]>
Branch: py3.5
Changeset: r87653:3ed61f318357
Date: 2016-10-09 12:18 +0300
http://bitbucket.org/pypy/pypy/changeset/3ed61f318357/
Log: Add failing deque_add test (reubano & plan_rich)
diff --git a/pypy/module/_collections/test/test_deque.py
b/pypy/module/_collections/test/test_deque.py
--- a/pypy/module/_collections/test/test_deque.py
+++ b/pypy/module/_collections/test/test_deque.py
@@ -317,3 +317,9 @@
iterator = reversed(d)
copy = pickle.loads(pickle.dumps(iterator))
assert list(iterator) == list(copy)
+
+ def test_deque_add(self):
+ from _collections import deque
+ d1 = deque([1,2,3])
+ d2 = deque([3,4,5])
+ assert d1 + d2 == deque([1,2,3,3,4,5])
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit