示例#1
0
 def testPosedgeAttrReadOnly(self):
     """ posedge attribute should not be writable"""
     s1 = Signal(1)
     try:
         s1.posedge = 1
     except AttributeError:
         pass
     else:
         self.fail()
示例#2
0
 def testPosedgeAttrReadOnly(self):
     """ posedge attribute should not be writable"""
     s1 = Signal(1)
     try:
         s1.posedge = 1
     except AttributeError:
         pass
     else:
         self.fail()
示例#3
0
 def testPosedgeAttrReadOnly(self):
     """ posedge attribute should not be writable"""
     s1 = Signal(1)
     with pytest.raises(AttributeError):
         s1.posedge = 1
示例#4
0
 def testPosedgeAttrReadOnly(self):
     """ posedge attribute should not be writable"""
     s1 = Signal(1)
     with pytest.raises(AttributeError):
         s1.posedge = 1