Author: Armin Rigo <[email protected]>
Branch: remove-list-smm
Changeset: r62516:d937f127b2e5
Date: 2013-03-19 16:55 -0700
http://bitbucket.org/pypy/pypy/changeset/d937f127b2e5/
Log: Add a test
diff --git a/pypy/module/__builtin__/test/test_builtin.py
b/pypy/module/__builtin__/test/test_builtin.py
--- a/pypy/module/__builtin__/test/test_builtin.py
+++ b/pypy/module/__builtin__/test/test_builtin.py
@@ -347,6 +347,7 @@
sorted_l = sorted(l, reverse = True, key = lambda x: x.lower())
assert sorted_l is not l
assert sorted_l == ['C', 'b', 'a']
+ raises(TypeError, sorted, [], reverse=None)
def test_reversed_simple_sequences(self):
l = range(5)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit