summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2016-12-07 09:33:43 +0100
committerArmin Rigo <arigo@tunes.org>2016-12-07 09:33:43 +0100
commitb203432d6b3907fc080a7eabae6d93f3e08d4d9f (patch)
treee9317ca6a36c27a4e1f5ecba1cfe5404bb555fc5
parent6a4703d1451960f7469402149d173fda22725e07 (diff)
downloadcffi-b203432d6b3907fc080a7eabae6d93f3e08d4d9f.tar.gz
fix test
-rw-r--r--testing/cffi1/test_ffi_obj.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/cffi1/test_ffi_obj.py b/testing/cffi1/test_ffi_obj.py
index daf39bb..4415115 100644
--- a/testing/cffi1/test_ffi_obj.py
+++ b/testing/cffi1/test_ffi_obj.py
@@ -360,7 +360,8 @@ def test_ffi_new_allocator_2():
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>"