diff options
author | Tim Orling <ticotimo@gmail.com> | 2023-01-21 13:52:00 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-24 21:59:31 +0000 |
commit | 323f6ce27a1bfd7159e72f29684674ff495dedee (patch) | |
tree | 9db25e4e00cc0b3518b81666e18b1f092a4370c9 /lib/toaster/tests/commands/test_runbuilds.py | |
parent | fcb64e1138a20eb19560af3fc5d1fa748cc9cf34 (diff) | |
download | bitbake-contrib-323f6ce27a1bfd7159e72f29684674ff495dedee.tar.gz |
bitbake: fix deprecated threading.Thread.setDaemon
Deprecated in Python 3.10:
https://docs.python.org/3/whatsnew/3.10.html#deprecated
https://github.com/python/cpython/pull/25174
Fixes warnings like:
...bitbake/lib/bb/ui/uievent.py:68: DeprecationWarning: setDaemon() is
deprecated, set the daemon attribute instead
self.t.setDaemon(True)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/tests/commands/test_runbuilds.py')
-rw-r--r-- | lib/toaster/tests/commands/test_runbuilds.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/toaster/tests/commands/test_runbuilds.py b/lib/toaster/tests/commands/test_runbuilds.py index e223b95fc..c77d6cf49 100644 --- a/lib/toaster/tests/commands/test_runbuilds.py +++ b/lib/toaster/tests/commands/test_runbuilds.py @@ -24,7 +24,7 @@ class KillRunbuilds(threading.Thread): """ Kill the runbuilds process after an amount of time """ def __init__(self, *args, **kwargs): super(KillRunbuilds, self).__init__(*args, **kwargs) - self.setDaemon(True) + self.daemon = True def run(self): time.sleep(5) |