Author: Armin Rigo <[email protected]>
Branch: stm
Changeset: r51708:9e1713213887
Date: 2012-01-23 18:02 +0100
http://bitbucket.org/pypy/pypy/changeset/9e1713213887/
Log: More tests.
diff --git a/pypy/rpython/lltypesystem/test/test_lltype.py
b/pypy/rpython/lltypesystem/test/test_lltype.py
--- a/pypy/rpython/lltypesystem/test/test_lltype.py
+++ b/pypy/rpython/lltypesystem/test/test_lltype.py
@@ -796,6 +796,13 @@
S = GcStruct('S', ('x', lltype.Signed),
hints={'immutable_fields': FieldListAccessor({'x': 1234})})
assert S._immutable_field('x') == 1234
+ #
+ S = GcStruct('S', ('c', lltype.Array(lltype.Char)))
+ assert S.c._immutable_field() == False
+ #
+ S = GcStruct('S', ('d', lltype.Array(lltype.Char,
+ hints={'immutable': True})))
+ assert S.d._immutable_field() == True
def test_typedef():
T = Typedef(Signed, 'T')
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit