Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r52697:48b1edafc52a
Date: 2012-02-20 22:47 +0100
http://bitbucket.org/pypy/pypy/changeset/48b1edafc52a/

Log:    dict.keys() and range() no longer return lists in python3, adapt the
        tests

diff --git a/pypy/interpreter/test/test_nestedscope.py 
b/pypy/interpreter/test/test_nestedscope.py
--- a/pypy/interpreter/test/test_nestedscope.py
+++ b/pypy/interpreter/test/test_nestedscope.py
@@ -53,12 +53,11 @@
             return g()
         outer_locals, inner_locals = f()
         assert inner_locals == {'i':3, 'x':3}
-        keys = outer_locals.keys()
-        keys.sort()
+        keys = sorted(outer_locals.keys())
         assert keys == ['h', 'x']
 
     def test_lambda_in_genexpr(self):
-        assert eval('map(apply, (lambda: t for t in range(10)))') == range(10)
+        assert eval('map(apply, (lambda: t for t in range(10)))') == 
list(range(10))
 
     def test_cell_contents(self):
         def f(x):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to