[pypy-svn] r33517 - in pypy/dist/pypy/objspace/std: . test

cfbolz at codespeak.net cfbolz at codespeak.net
Sat Oct 21 01:03:46 CEST 2006


Author: cfbolz
Date: Sat Oct 21 01:03:45 2006
New Revision: 33517

Modified:
   pypy/dist/pypy/objspace/std/rangeobject.py
   pypy/dist/pypy/objspace/std/test/test_rangeobject.py
Log:
typo


Modified: pypy/dist/pypy/objspace/std/rangeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/rangeobject.py	(original)
+++ pypy/dist/pypy/objspace/std/rangeobject.py	Sat Oct 21 01:03:45 2006
@@ -129,7 +129,7 @@
     has_reverse = space.is_true(w_reverse)
     if w_rangelist.w_list is not None:
         w_sort = space.getattr(w_rangelist.w_list, space.wrap("sort"))
-        return space.call_function(w_sort, w_cmd, w_keyfunc, w_reverse)
+        return space.call_function(w_sort, w_cmp, w_keyfunc, w_reverse)
     if has_reverse:
         factor = -1
     else:

Modified: pypy/dist/pypy/objspace/std/test/test_rangeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_rangeobject.py	(original)
+++ pypy/dist/pypy/objspace/std/test/test_rangeobject.py	Sat Oct 21 01:03:45 2006
@@ -56,3 +56,8 @@
         r.sort(reverse=True)
         assert self.not_forced(r)
         assert r == range(10, -1, -1)
+        r = range(100)
+        r[0] = 999
+        assert not self.not_forced(r)
+        r.sort()
+        assert r == range(1, 100) + [999]



More information about the Pypy-commit mailing list