@skip('silverlight')
def test_weakref():
 x = _struct.Struct('i')
 import _weakref
 AreEqual(_weakref.proxy(x).size, x.size)

@ skip ( 'silverlight' ) def test_weakref ( ) : x = _struct . Struct ( 'i' ) import _weakref AreEqual ( _weakref . proxy ( x ) . size , x . size )
weakrefs to struct objects are supported .