diff options
author | Peter Hoyes <Peter.Hoyes@arm.com> | 2023-06-16 13:36:47 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-27 15:27:02 +0100 |
commit | b5455b98093a3eaf122ebe3d29c3bef949fd2440 (patch) | |
tree | 7c22b817f81e05362984150c7dd285e38c782d40 | |
parent | 7290a9daf1707ab5b2288f34353f499f5ce57d6a (diff) | |
download | bitbake-contrib-b5455b98093a3eaf122ebe3d29c3bef949fd2440.tar.gz |
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.
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/tests/fetch.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py index d23012027..ba7be048a 100644 --- a/lib/bb/tests/fetch.py +++ b/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(): |