[pypy-commit] pypy py3k: some now passing tests for the silly W_IntObject bug

pjenvey noreply at buildbot.pypy.org
Thu Dec 6 02:26:47 CET 2012


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r59344:b0371bf753c3
Date: 2012-12-05 17:18 -0800
http://bitbucket.org/pypy/pypy/changeset/b0371bf753c3/

Log:	some now passing tests for the silly W_IntObject bug

diff --git a/pypy/objspace/std/test/test_bytearrayobject.py b/pypy/objspace/std/test/test_bytearrayobject.py
--- a/pypy/objspace/std/test/test_bytearrayobject.py
+++ b/pypy/objspace/std/test/test_bytearrayobject.py
@@ -14,6 +14,7 @@
         assert bytearray(b'abc') == b"abc"
         assert bytearray([65, 66, 67]) == b"ABC"
         assert bytearray(5) == b'\0' * 5
+        assert bytearray(set(b'foo')) in (b'fo', b'of')
         raises(TypeError, bytearray, ['a', 'bc'])
         raises(ValueError, bytearray, [65, -3])
         raises(TypeError, bytearray, [65.0])
diff --git a/pypy/objspace/std/test/test_stringobject.py b/pypy/objspace/std/test/test_stringobject.py
--- a/pypy/objspace/std/test/test_stringobject.py
+++ b/pypy/objspace/std/test/test_stringobject.py
@@ -96,6 +96,7 @@
         assert bytes(3) == b'\0\0\0'
         assert bytes(b'abc') == b'abc'
         assert bytes('abc', 'ascii') == b'abc'
+        assert bytes(set(b'foo')) in (b'fo', b'of')
 
     def test_format(self):
         import operator


More information about the pypy-commit mailing list