Author: Maciej Fijalkowski <[email protected]>
Branch: vmprof
Changeset: r76472:5dfab2a675c5
Date: 2015-03-19 15:13 +0200
http://bitbucket.org/pypy/pypy/changeset/5dfab2a675c5/
Log: fix those tests
diff --git a/rpython/rlib/test/test_rbisect.py
b/rpython/rlib/test/test_rbisect.py
--- a/rpython/rlib/test/test_rbisect.py
+++ b/rpython/rlib/test/test_rbisect.py
@@ -44,7 +44,7 @@
([1, 2, 2, 3, 3, 3, 4, 4, 4, 4], 5, 10),
]
for lst, elem, exp in cases:
- assert bisect_left(lst, elem) == exp
+ assert bisect_left(lst, elem, len(lst)) == exp
def test_bisect_right():
cases = [
@@ -90,4 +90,4 @@
([1, 2, 2, 3, 3, 3, 4, 4, 4, 4], 5, 10),
]
for lst, elem, exp in cases:
- assert bisect_right(lst, elem) == exp
+ assert bisect_right(lst, elem, len(lst)) == exp
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit