Fix syntax warning in python 3.8
@@ -10,11 +10,11 @@ from cocotb.binary import BinaryValue
def toggle_clock(dut):
dut.clk = 0
yield Timer(10)
- if dut.clk.value.integer is not 0:
+ if dut.clk.value.integer != 0:
raise TestFailure("Clock not set to 0 as expected")
dut.clk = 1
yield Timer(10)
- if dut.clk.value.integer is not 1:
+ if dut.clk.value.integer != 1:
raise TestFailure("Clock not set to 1 as expected")
@cocotb.test()
