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

sru-regression-messages
Iain Lane 6 years ago
parent 62ca3b16b9
commit f8bfbfe164
No known key found for this signature in database
GPG Key ID: E352D5C51C5041D4

@ -243,7 +243,6 @@ class AutopkgtestPolicy(BasePolicy):
# render HTML line for testsrc entry
excuse.addhtml("autopkgtest for %s: %s" % (testname, ', '.join(html_archmsg)))
if verdict != PolicyVerdict.PASS:
# check for force-skiptest hint
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
# gcc during the test, and doxygen as an example for a libgcc user.
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
srcinfo = self.britney.sources['unstable'][src]
if 'autopkgtest' in srcinfo.testsuite:
@ -742,4 +741,3 @@ class AutopkgtestPolicy(BasePolicy):
return True
return False

Loading…
Cancel
Save