[pypy-svn] r38490 - pypy/dist/pypy/objspace/std/test
arigo at codespeak.net
arigo at codespeak.net
Sun Feb 11 18:17:08 CET 2007
Author: arigo
Date: Sun Feb 11 18:17:07 2007
New Revision: 38490
Modified:
pypy/dist/pypy/objspace/std/test/test_set.py
Log:
Add a test showing why you explicitly need a cmp__ for sets :-(
Modified: pypy/dist/pypy/objspace/std/test/test_set.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_set.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_set.py Sun Feb 11 18:17:07 2007
@@ -54,3 +54,6 @@
a = subset()
b = a | set('abc')
assert type(b) is subset
+
+ def test_compare(self):
+ raises(TypeError, cmp, set('abc'), set('abd'))
More information about the Pypy-commit
mailing list