Author: Richard Plangger <[email protected]>
Branch: strbuf-as-buffer
Changeset: r2850:b301c37c91bb
Date: 2017-01-03 09:27 +0100
http://bitbucket.org/cffi/cffi/changeset/b301c37c91bb/
Log: readd two lines accidentaly removed
diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -3426,6 +3426,8 @@
BCharA = new_array_type(BCharP, None)
p1 = from_buffer(BCharA, b"foo")
assert p1 == from_buffer(BCharA, b"foo")
+ import gc; gc.collect()
+ assert p1 == from_buffer(BCharA, b"foo")
py.test.raises(TypeError, from_buffer, BCharA, u+"foo")
try:
from __builtin__ import buffer
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit