]> git.sur5r.net Git - u-boot/blobdiff - test/py/tests/test_fit.py
test/py: fit: Open files as binary files
[u-boot] / test / py / tests / test_fit.py
index a0f9350411b49cddfbadb4652457b6302e8c9bc9..34696e976796baf22269e66cbac55833b422212b 100755 (executable)
@@ -143,7 +143,7 @@ def test_fit(u_boot_console):
         Returns:
             Contents of file as a string
         """
-        with open(fname, 'r') as fd:
+        with open(fname, 'rb') as fd:
             return fd.read()
 
     def make_dtb():