Author: Richard Plangger <[email protected]>
Branch: py3.5
Changeset: r87655:0deaad2bf1c1
Date: 2016-10-09 11:18 +0200
http://bitbucket.org/pypy/pypy/changeset/0deaad2bf1c1/
Log: test deque's new mul method
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
@@ -323,3 +323,9 @@
d1 = deque([1,2,3])
d2 = deque([3,4,5])
assert d1 + d2 == deque([1,2,3,3,4,5])
+
+ def test_queue_mul(self):
+ from _collections import deque
+ d = deque([1,2,3])
+ assert d*3 == deque([1,2,3]*3)
+
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit