summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests/event.py
diff options
context:
space:
mode:
authorChris Laplante <chris.laplante@agilent.com>2021-10-19 10:06:09 -1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-23 17:47:38 +0100
commitc35f34361e94a81660c6e1f59d770f8a165e7f53 (patch)
tree836d771437604d9ff369f5de9aec63dc651a7cf5 /bitbake/lib/bb/tests/event.py
parentd2f1a20a19a8a1d604e703d630421a2cdbe65e14 (diff)
downloadpoky-c35f34361e94a81660c6e1f59d770f8a165e7f53.tar.gz
bitbake: compat.py: remove file since it no longer actually implements anything
Now that compat.py just imports Python standard library stuff, get rid of the layer of indirection. (Bitbake rev: 2a40a776efd7c28fa93a8556accccb79e3a7d0f0) Signed-off-by: Chris Laplante <chris.laplante@agilent.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit e2be6defbb9fcf25f9df04c3b452d0dba48dfd03) Signed-off-by: Justin Bronder <jsbronder@cold-front.org> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tests/event.py')
-rw-r--r--bitbake/lib/bb/tests/event.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/bitbake/lib/bb/tests/event.py b/bitbake/lib/bb/tests/event.py
index 9229b63d47..9ca7e9bc8e 100644
--- a/bitbake/lib/bb/tests/event.py
+++ b/bitbake/lib/bb/tests/event.py
@@ -6,17 +6,18 @@
6# SPDX-License-Identifier: GPL-2.0-only 6# SPDX-License-Identifier: GPL-2.0-only
7# 7#
8 8
9import unittest 9import collections
10import bb
11import logging
12import bb.compat
13import bb.event
14import importlib 10import importlib
11import logging
12import pickle
15import threading 13import threading
16import time 14import time
17import pickle 15import unittest
18from unittest.mock import Mock 16from unittest.mock import Mock
19from unittest.mock import call 17from unittest.mock import call
18
19import bb
20import bb.event
20from bb.msg import BBLogFormatter 21from bb.msg import BBLogFormatter
21 22
22 23
@@ -75,7 +76,7 @@ class EventHandlingTest(unittest.TestCase):
75 76
76 def _create_test_handlers(self): 77 def _create_test_handlers(self):
77 """ Method used to create a test handler ordered dictionary """ 78 """ Method used to create a test handler ordered dictionary """
78 test_handlers = bb.compat.OrderedDict() 79 test_handlers = collections.OrderedDict()
79 test_handlers["handler1"] = self._test_process.handler1 80 test_handlers["handler1"] = self._test_process.handler1
80 test_handlers["handler2"] = self._test_process.handler2 81 test_handlers["handler2"] = self._test_process.handler2
81 return test_handlers 82 return test_handlers
@@ -96,7 +97,7 @@ class EventHandlingTest(unittest.TestCase):
96 97
97 def test_clean_class_handlers(self): 98 def test_clean_class_handlers(self):
98 """ Test clean_class_handlers method """ 99 """ Test clean_class_handlers method """
99 cleanDict = bb.compat.OrderedDict() 100 cleanDict = collections.OrderedDict()
100 self.assertEqual(cleanDict, 101 self.assertEqual(cleanDict,
101 bb.event.clean_class_handlers()) 102 bb.event.clean_class_handlers())
102 103