summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests/fetch.py
diff options
context:
space:
mode:
authorPeter Hoyes <Peter.Hoyes@arm.com>2023-06-16 13:36:47 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-27 15:28:56 +0100
commita7b74c0b7357535917c453d3426c83d57461b682 (patch)
treeb2cc75ebc13cb7e8b6781f8cef80b490b07d2a7d /bitbake/lib/bb/tests/fetch.py
parentbf65b87432eeb833087c472513cdb48c4e6de8c0 (diff)
downloadpoky-a7b74c0b7357535917c453d3426c83d57461b682.tar.gz
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 <Peter.Hoyes@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tests/fetch.py')
-rw-r--r--bitbake/lib/bb/tests/fetch.py3
1 files changed, 2 insertions, 1 deletions
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():
24 return lambda f: f 24 return lambda f: f
25 25
26class TestTimeout(Exception): 26class TestTimeout(Exception):
27 pass 27 # Indicate to pytest that this is not a test suite
28 __test__ = False
28 29
29class Timeout(): 30class Timeout():
30 31