From: Jacob Lifshay Date: Thu, 25 Aug 2022 05:36:38 +0000 (-0700) Subject: make pytest ignore non-test classes, these're the last pytest collection warnings X-Git-Tag: sv_maxu_works-initial~109 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be70c1589f05db15e19ccbd901aa4d56d8fb5145;p=openpower-isa.git make pytest ignore non-test classes, these're the last pytest collection warnings --- 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,