Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r89868:d5619ea4fcdb
Date: 2017-02-01 09:32 +0100
http://bitbucket.org/pypy/pypy/changeset/d5619ea4fcdb/

Log:    skip test on runappdirect

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
@@ -98,6 +98,9 @@
 
 class AppTestBytesObject:
 
+    def setup_class(cls):
+        cls.w_runappdirect = cls.space.wrap(cls.runappdirect)
+
     def test_constructor(self):
         assert bytes() == b''
         assert bytes(3) == b'\0\0\0'
@@ -789,6 +792,8 @@
         raises(LookupError, 'hello'.encode, 'base64')
 
     def test_hash(self):
+        if self.runappdirect:
+            skip("randomized hash by default")
         # check that we have the same hash as CPython for at least 31 bits
         # (but don't go checking CPython's special case -1)
         # disabled: assert hash('') == 0 --- different special case
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to