From 1e498ee277ba0d59ec6b1df8dac1f723b8a53dd7 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 8 Jan 2022 15:41:32 +0000 Subject: [PATCH] whitespace and use exc is None not exc == None --- src/soc/experiment/test/test_loadstore1.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2