def testPosedgeAttrReadOnly(self): """ posedge attribute should not be writable""" s1 = Signal(1) try: s1.posedge = 1 except AttributeError: pass else: self.fail()
def testPosedgeAttrReadOnly(self): """ posedge attribute should not be writable""" s1 = Signal(1) with pytest.raises(AttributeError): s1.posedge = 1