binman: Correct pylint errors
Fix pylint errors that can be fixed and mask those that seem to be incorrect. A complication with binman is that it tries to avoid importing libfdt (or anything that imports it) unless needed, so that things like help still work if it is missing. Note that two tests are duplicated in binman and two others have duplicate names, so both of these issues are fixed also. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
# Test for the Entry class
|
||||
|
||||
import collections
|
||||
import importlib
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
@@ -32,11 +33,7 @@ class TestEntry(unittest.TestCase):
|
||||
def _ReloadEntry(self):
|
||||
global entry
|
||||
if entry:
|
||||
if sys.version_info[0] >= 3:
|
||||
import importlib
|
||||
importlib.reload(entry)
|
||||
else:
|
||||
reload(entry)
|
||||
importlib.reload(entry)
|
||||
else:
|
||||
from binman import entry
|
||||
|
||||
|
||||
Reference in New Issue
Block a user