Fix all pycodestyle issues in b/p/autopkgtest.py

ubuntu/rebased
Paul Gevers 6 years ago
parent 992b27abb3
commit 7611231ee2
No known key found for this signature in database
GPG Key ID: 9C5C99EB05BD750A

@ -555,7 +555,7 @@ class AutopkgtestPolicy(BasePolicy):
try:
source_of_bin = packages_s_a[binary.package_name].source
triggers.add(
source_of_bin + '/' + \
source_of_bin + '/' +
sources_s[source_of_bin].version)
except KeyError:
# Apparently the package was removed from
@ -566,7 +566,7 @@ class AutopkgtestPolicy(BasePolicy):
for tdep_src in self.testsuite_triggers.get(binary.package_name, set()):
try:
triggers.add(
tdep_src + '/' + \
tdep_src + '/' +
sources_s[tdep_src].version)
except KeyError:
# Apparently the source was removed from
@ -842,7 +842,8 @@ class AutopkgtestPolicy(BasePolicy):
else:
result = Result.FAIL
self.logger.info('Fetched test result for %s/%s/%s %s (triggers: %s): %s',
self.logger.info(
'Fetched test result for %s/%s/%s %s (triggers: %s): %s',
src, ver, arch, run_id, result_triggers, result.name.lower())
# remove matching test requests
@ -894,7 +895,6 @@ class AutopkgtestPolicy(BasePolicy):
result[2] = run_id
result[3] = seen
def send_test_request(self, src, arch, trigger, huge=False):
'''Send out AMQP request for testing src/arch for trigger
@ -1123,4 +1123,3 @@ class AutopkgtestPolicy(BasePolicy):
return True
return False

@ -17,7 +17,7 @@ EXCEPTIONS_BY_FILE = {
'britney2/installability/tester.py': 4,
'britney2/policies/__init__.py': 2,
'britney2/policies/policy.py': 19,
'britney2/policies/autopkgtest.py': 9,
'britney2/policies/autopkgtest.py': 0,
'tests/mock_swift.py': 2,
'tests/__init__.py': 31,
'tests/test_autopkgtest.py': 338,

Loading…
Cancel
Save