From be70c1589f05db15e19ccbd901aa4d56d8fb5145 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 24 Aug 2022 22:36:38 -0700 Subject: [PATCH] make pytest ignore non-test classes, these're the last pytest collection warnings --- src/openpower/test/common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openpower/test/common.py b/src/openpower/test/common.py index 34705af8..4ba6ccdf 100644 --- a/src/openpower/test/common.py +++ b/src/openpower/test/common.py @@ -85,6 +85,8 @@ def skip_case_if(condition, reason): class TestAccumulatorBase: + __test__ = False # pytest should ignore this class + def __init__(self): self.__subtest_args = {} @@ -139,6 +141,8 @@ class TestAccumulatorBase: class TestCase: + __test__ = False # pytest should ignore this class + def __init__(self, program, name, regs=None, sprs=None, cr=0, mem=None, msr=0, do_sim=True, -- 2.30.2