Author: Armin Rigo <[email protected]>
Branch: reverse-debugger-updated
Changeset: r94550:265844e2ae4e
Date: 2018-05-13 23:40 +0200
http://bitbucket.org/pypy/pypy/changeset/265844e2ae4e/
Log: improve the test
diff --git a/rpython/rtyper/lltypesystem/test/test_rffi.py
b/rpython/rtyper/lltypesystem/test/test_rffi.py
--- a/rpython/rtyper/lltypesystem/test/test_rffi.py
+++ b/rpython/rtyper/lltypesystem/test/test_rffi.py
@@ -832,6 +832,10 @@
check_content(strings, rawptrs)
rgc.collect(); rgc.collect(); rgc.collect()
check_content(strings, rawptrs)
+ for i in range(len(strings)): # check that it still returns the
+ # same raw ptrs
+ p1 = rffi._get_raw_address_buf_from_string(strings[i])
+ assert rawptrs[i] == p1
del strings
rgc.collect(); rgc.collect(); rgc.collect()
return 42
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit