From f4b3cc5bccf0c10375a4dcd101273423de470a08 Mon Sep 17 00:00:00 2001 From: GCHQDeveloper560 <48131108+GCHQDeveloper560@users.noreply.github.com> Date: Wed, 7 Jul 2021 12:39:27 +0100 Subject: [PATCH] Fix failing tests with Pandas 1.3 The previous syntax for checking a column of identical values fails with Pandas 1.3. The new check works with 1.3 and older versions. --- tests/test_reporting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_reporting.py b/tests/test_reporting.py index 05f515a32..21a1d3b02 100644 --- a/tests/test_reporting.py +++ b/tests/test_reporting.py @@ -293,7 +293,7 @@ def test_picorv32_ise_spartan6_resources(picorv32_s6_data): # Check Control Set Information table df = rpt["Control Set Information"] - assert df["Clock Signal"].all() == "clk_BUFGP" + assert (df["Clock Signal"] == "clk_BUFGP").all() assert df.shape == (20, 6) rst_en = df[ @@ -672,7 +672,7 @@ def test_linux_on_litex_vexriscv_pipistrello_resources( df = rpt["IOB Properties"].set_index("IOB Name") ddr_io = df.filter(regex="ddram_*", axis=0) - assert ddr_io["IO Standard"].all() == "MOBILE_DDR" + assert (ddr_io["IO Standard"] == "MOBILE_DDR").all() # Check Control Set Information table df = rpt["Control Set Information"]