Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r53892:563355a096a1
Date: 2012-03-22 11:25 +0100
http://bitbucket.org/pypy/pypy/changeset/563355a096a1/

Log:    this is not supposed to raise, but to work

diff --git a/pypy/objspace/std/test/test_strsliceobject.py 
b/pypy/objspace/std/test/test_strsliceobject.py
--- a/pypy/objspace/std/test/test_strsliceobject.py
+++ b/pypy/objspace/std/test/test_strsliceobject.py
@@ -98,7 +98,7 @@
         assert b'a' in s
         assert b'ab' in s
         assert not b'd' in s
-        raises(TypeError, slice(b'a' * 100).__contains__, 1)
+        assert ord(b'a') in slice(b'a' * 100)
         
     def test_hash(self):
         import __pypy__
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to