diff options
author | Chris Laplante <chris.laplante@agilent.com> | 2020-08-25 12:51:41 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-26 09:05:38 +0100 |
commit | 77441a08d4ba27996a651651e65f63af76e2503e (patch) | |
tree | 994b1fa370372cf0d2c45fa066b3ae5fb90e6366 /bitbake/lib/bb/tests | |
parent | 392b2cf529660da75013352a4249492ac55b36e6 (diff) | |
download | poky-77441a08d4ba27996a651651e65f63af76e2503e.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: e2be6defbb9fcf25f9df04c3b452d0dba48dfd03)
Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tests')
-rw-r--r-- | bitbake/lib/bb/tests/event.py | 17 |
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 | ||
9 | import unittest | 9 | import collections |
10 | import bb | ||
11 | import logging | ||
12 | import bb.compat | ||
13 | import bb.event | ||
14 | import importlib | 10 | import importlib |
11 | import logging | ||
12 | import pickle | ||
15 | import threading | 13 | import threading |
16 | import time | 14 | import time |
17 | import pickle | 15 | import unittest |
18 | from unittest.mock import Mock | 16 | from unittest.mock import Mock |
19 | from unittest.mock import call | 17 | from unittest.mock import call |
18 | |||
19 | import bb | ||
20 | import bb.event | ||
20 | from bb.msg import BBLogFormatter | 21 | from 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 | ||