autopkgtest: Make pycodestyle clean (--ignore=E501,W504)

This commit is contained in:
Iain Lane 2018-12-06 09:48:30 +00:00
parent 62ca3b16b9
commit f8bfbfe164
No known key found for this signature in database
GPG Key ID: E352D5C51C5041D4

View File

@ -243,7 +243,6 @@ class AutopkgtestPolicy(BasePolicy):
# render HTML line for testsrc entry # render HTML line for testsrc entry
excuse.addhtml("autopkgtest for %s: %s" % (testname, ', '.join(html_archmsg))) excuse.addhtml("autopkgtest for %s: %s" % (testname, ', '.join(html_archmsg)))
if verdict != PolicyVerdict.PASS: if verdict != PolicyVerdict.PASS:
# check for force-skiptest hint # check for force-skiptest hint
hints = self.britney.hints.search('force-skiptest', package=source_name, version=source_data_srcdist.version) hints = self.britney.hints.search('force-skiptest', package=source_name, version=source_data_srcdist.version)
@ -310,7 +309,7 @@ class AutopkgtestPolicy(BasePolicy):
# serves no purpose. Just check some key packages which actually use # serves no purpose. Just check some key packages which actually use
# gcc during the test, and doxygen as an example for a libgcc user. # gcc during the test, and doxygen as an example for a libgcc user.
if src.startswith('gcc-'): if src.startswith('gcc-'):
if re.match('gcc-\d$', src): if re.match(r'gcc-\d$', src):
# add gcc's own tests, if it has any # add gcc's own tests, if it has any
srcinfo = self.britney.sources['unstable'][src] srcinfo = self.britney.sources['unstable'][src]
if 'autopkgtest' in srcinfo.testsuite: if 'autopkgtest' in srcinfo.testsuite:
@ -742,4 +741,3 @@ class AutopkgtestPolicy(BasePolicy):
return True return True
return False return False