diff options
author | Simon Glass <sjg@chromium.org> | 2022-02-11 23:23:20 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-03-02 18:28:12 +0300 |
commit | 8a455fc08f8191fe95d5fe23098837154e90cccc (patch) | |
tree | 33fa1adb4386b08ceeb12f781cf19dbaf0ffd29b /tools/dtoc/test_fdt.py | |
parent | ac05335d854179d4fb2cd018469b01682cba3a30 (diff) | |
download | u-boot-8a455fc08f8191fe95d5fe23098837154e90cccc.tar.xz |
dtoc: Correct pylint errors
Fix pylint errors in this directory.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/test_fdt.py')
-rwxr-xr-x | tools/dtoc/test_fdt.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/dtoc/test_fdt.py b/tools/dtoc/test_fdt.py index 576d65b97e..28231e57b1 100755 --- a/tools/dtoc/test_fdt.py +++ b/tools/dtoc/test_fdt.py @@ -25,7 +25,7 @@ sys.path.insert(2, os.path.join(our_path, from dtoc import fdt from dtoc import fdt_util from dtoc.fdt_util import fdt32_to_cpu, fdt64_to_cpu -from fdt import Type, BytesToValue +from dtoc.fdt import Type, BytesToValue import libfdt from patman import command from patman import test_util @@ -119,9 +119,9 @@ class TestFdt(unittest.TestCase): """Test that packing a device tree works""" self.dtb.Pack() - def testGetFdt(self): + def testGetFdtRaw(self): """Tetst that we can access the raw device-tree data""" - self.assertTrue(isinstance(self.dtb.GetContents(), bytearray)) + self.assertTrue(isinstance(self.dtb.GetContents(), bytes)) def testGetProps(self): """Tests obtaining a list of properties""" |