def test_set_fields_cycle_fails(self):

    class A(Structure):
        pass
    import pytest
    pytest.raises(AttributeError, '\n            A._fields_ = [("a", A)]\n                      ')
def test_set_fields_cycle_fails(self):

    class A(Structure):
        pass
    import pytest
    pytest.raises(AttributeError, '\n            A._fields_ = [("a", A)]\n                      ')