From afaa99de548d2b83378e11fc969c9241dc104f57 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Tue, 7 Dec 2021 17:51:14 -0800 Subject: [PATCH] account for Mock absurdities --- src/soc/fu/pipe_data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/fu/pipe_data.py b/src/soc/fu/pipe_data.py index 40220a1c..ec6d240c 100644 --- a/src/soc/fu/pipe_data.py +++ b/src/soc/fu/pipe_data.py @@ -85,4 +85,5 @@ class CommonPipeSpec: def get_pspec_draft_bitmanip(pspec): - return getattr(pspec, "draft_bitmanip", False) + # use `is True` to account for Mock absurdities + return getattr(pspec, "draft_bitmanip", False) is True -- 2.30.2