From 2408ce611311f34f44dab5ef266762ef484020eb Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Sun, 8 Oct 2023 21:43:00 -0700 Subject: [PATCH] speed up divmod shift-sub tests by removing most test cases --- src/openpower/test/bigint/powmod.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openpower/test/bigint/powmod.py b/src/openpower/test/bigint/powmod.py index 425e860a..89826eae 100644 --- a/src/openpower/test/bigint/powmod.py +++ b/src/openpower/test/bigint/powmod.py @@ -529,7 +529,9 @@ class PowModCases(TestAccumulatorBase): yield (n, d) def case_divmod_shift_sub_512x256_to_256x256(self): - for n, d in self.divmod_512x256_to_256x256_test_inputs(): + cases = list(self.divmod_512x256_to_256x256_test_inputs()) + del cases[2:-1] # speed up tests by removing most test cases + for n, d in cases: q, r = divmod(n, d) with self.subTest(n=f"{n:#_x}", d=f"{d:#_x}", q=f"{q:#_x}", r=f"{r:#_x}"): -- 2.30.2