diff options
author | Simon Glass <sjg@chromium.org> | 2018-06-06 15:37:07 -0600 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-06-12 15:05:05 +1000 |
commit | 481246a0c13a364081579c97fc4efbba5213cac1 (patch) | |
tree | 1be6deae502f8b3ff46e35883f057c8605eb34d9 | |
parent | 9aafa33d99ed8a6fd9af827480b58a3f463917fb (diff) | |
download | dtc-481246a0c13a364081579c97fc4efbba5213cac1.zip dtc-481246a0c13a364081579c97fc4efbba5213cac1.tar.gz dtc-481246a0c13a364081579c97fc4efbba5213cac1.tar.bz2 |
pylibfdt: Avoid accessing the internal _fdt member in tests
We can use the accessor now, so do so.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | tests/pylibfdt_tests.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/pylibfdt_tests.py b/tests/pylibfdt_tests.py index 08c4f57..f195a34 100644 --- a/tests/pylibfdt_tests.py +++ b/tests/pylibfdt_tests.py @@ -336,10 +336,9 @@ class PyLibfdtTests(unittest.TestCase): def testIntegers(self): """Check that integers can be passed and returned""" - self.assertEquals(0, libfdt.fdt_get_phandle(self.fdt.as_bytearray(), 0)) + self.assertEquals(0, libfdt.fdt_get_phandle(self.fdt._fdt, 0)) node2 = self.fdt.path_offset('/subnode@2') - self.assertEquals( - 0x2000, libfdt.fdt_get_phandle(self.fdt.as_bytearray(), node2)) + self.assertEquals(0x2000, libfdt.fdt_get_phandle(self.fdt._fdt, node2)) def testGetPhandle(self): """Test for the get_phandle() method""" |