[pypy-commit] pypy default: fix test

arigo pypy.commits at gmail.com
Wed Dec 7 03:33:40 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r88924:e8f04195dde5
Date: 2016-12-07 09:33 +0100
http://bitbucket.org/pypy/pypy/changeset/e8f04195dde5/

Log:	fix test

diff --git a/pypy/module/_cffi_backend/test/test_ffi_obj.py b/pypy/module/_cffi_backend/test/test_ffi_obj.py
--- a/pypy/module/_cffi_backend/test/test_ffi_obj.py
+++ b/pypy/module/_cffi_backend/test/test_ffi_obj.py
@@ -401,7 +401,8 @@
             retries += 1
             assert retries <= 5
             import gc; gc.collect()
-        assert seen == [40, 40, raw1, raw2]
+        assert (seen == [40, 40, raw1, raw2] or
+                seen == [40, 40, raw2, raw1])
         assert repr(seen[2]) == "<cdata 'char[]' owning 41 bytes>"
         assert repr(seen[3]) == "<cdata 'char[]' owning 41 bytes>"
 


More information about the pypy-commit mailing list