[pypy-commit] pypy py3k: this is not supposed to raise, but to work

antocuni noreply at buildbot.pypy.org
Thu Mar 22 11:26:10 CET 2012

Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r53892:563355a096a1
Date: 2012-03-22 11:25 +0100

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__

More information about the pypy-commit mailing list