From: Luke Kenneth Casson Leighton Date: Sat, 8 Jan 2022 15:41:32 +0000 (+0000) Subject: whitespace and use exc is None not exc == None X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e498ee277ba0d59ec6b1df8dac1f723b8a53dd7;p=soc.git whitespace and use exc is None not exc == None --- diff --git a/src/soc/experiment/test/test_loadstore1.py b/src/soc/experiment/test/test_loadstore1.py index 8cf2e119..eb31acf0 100644 --- a/src/soc/experiment/test/test_loadstore1.py +++ b/src/soc/experiment/test/test_loadstore1.py @@ -516,16 +516,18 @@ def _test_loadstore1_microwatt_mmu_bin_test2(dut, mem): wbget.stop = True + def test_pi_ld_misalign(pi,addr,data_len,msr): for i in range(0,data_len): ld_data, exctype, exc = yield from pi_ld(pi, addr+i, data_len, msr=msr) yield if i == 0: - assert exc==None + assert exc is None # use "is None" not "== None" print("MISALIGN: test_pi_ld_misalign returned",hex(ld_data)) else: assert exc.alignment == 1 + def _test_loadstore1_misalign(dut, mem): mmu = dut.submodules.mmu pi = dut.submodules.ldst.pi