chore: fix pylint-2.7 errors (#33233)
This commit is contained in:
parent
fdb60240f3
commit
45e2f86fe0
13 changed files with 30 additions and 32 deletions
|
@ -69,7 +69,8 @@ class Platform:
|
|||
if platform in ('cygwin', 'win32'):
|
||||
return Platform.WINDOWS
|
||||
|
||||
assert False, "unexpected current platform '{}'".format(platform)
|
||||
raise AssertionError(
|
||||
"unexpected current platform '{}'".format(platform))
|
||||
|
||||
@staticmethod
|
||||
def get_all():
|
||||
|
@ -155,7 +156,7 @@ class TestsList():
|
|||
if isinstance(value, basestring):
|
||||
return {value: None}
|
||||
|
||||
assert False, "unexpected shorthand type: {}".format(type(value))
|
||||
raise AssertionError("unexpected shorthand type: {}".format(type(value)))
|
||||
|
||||
@staticmethod
|
||||
def __make_a_list(value):
|
||||
|
@ -174,7 +175,8 @@ class TestsList():
|
|||
# It looks ugly as hell, but it does the job.
|
||||
return [list_item for key in value for list_item in value[key]]
|
||||
|
||||
assert False, "unexpected type for list merging: {}".format(type(value))
|
||||
raise AssertionError(
|
||||
"unexpected type for list merging: {}".format(type(value)))
|
||||
|
||||
def __platform_supports(self, binary_name):
|
||||
return Platform.get_current() in self.tests[binary_name]['platforms']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue