From a7b74c0b7357535917c453d3426c83d57461b682 Mon Sep 17 00:00:00 2001 From: Peter Hoyes Date: Fri, 16 Jun 2023 13:36:47 +0100 Subject: bitbake: bitbake: tests/fetch: Mark TestTimeout as not a test suite pytest test collection attempts to collect all classes containing "Test". TestTimeout is not a test class so add the __test__ = False attribute to indicate this. (Bitbake rev: b5455b98093a3eaf122ebe3d29c3bef949fd2440) Signed-off-by: Peter Hoyes Signed-off-by: Richard Purdie --- bitbake/lib/bb/tests/fetch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/tests/fetch.py') diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index d230120271..ba7be048a8 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py @@ -24,7 +24,8 @@ def skipIfNoNetwork(): return lambda f: f class TestTimeout(Exception): - pass + # Indicate to pytest that this is not a test suite + __test__ = False class Timeout(): -- cgit v1.2.3-54-g00ecf