Author: Matti Picus <matti.pi...@gmail.com>
Branch: unicode-utf8-py3
Changeset: r95066:efa8c0bedfc6
Date: 2018-09-01 16:50 +0200
http://bitbucket.org/pypy/pypy/changeset/efa8c0bedfc6/

Log:    add failing test - id clash causes pickling errors

diff --git a/pypy/objspace/std/test/test_bytesobject.py 
b/pypy/objspace/std/test/test_bytesobject.py
--- a/pypy/objspace/std/test/test_bytesobject.py
+++ b/pypy/objspace/std/test/test_bytesobject.py
@@ -1026,3 +1026,9 @@
             pass
         assert type(Sub1(X())) is Sub1
         assert Sub1(X()) == b'foo'
+
+    def test_id(self):
+        a = b'abcabc'
+        id_b = id(str(a, 'latin1'))
+        id_a = id(a)
+        assert id_a != id_b
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to