Merge "Fix some python2/3 migration issues" am: ceb81e2bef am: fa3f8bdd90

Original change: https://android-review.googlesource.com/c/platform/build/+/1930407

Change-Id: I25547cf5d49e9cfb796fac5f039b0ba2f1513701
This commit is contained in:
Treehugger Robot 2021-12-22 06:53:46 +00:00 committed by Automerger Merge Worker
commit 949f4fc6b6

View file

@ -198,8 +198,9 @@ class ApexUtilsTest(test_utils.ReleaseToolsTestCase):
# pass `false` as a sign_tool to see the invocation error # pass `false` as a sign_tool to see the invocation error
with self.assertRaises(common.ExternalError) as cm: with self.assertRaises(common.ExternalError) as cm:
signer = apex_utils.ApexApkSigner(apex_path, None, None, sign_tool='false') signer = apex_utils.ApexApkSigner(
signer.ProcessApexFile(apk_keys, self.payload_key) apex_path, None, None, sign_tool='false')
signer.ProcessApexFile(apk_keys, self.payload_key)
the_exception = cm.exception the_exception = cm.exception
self.assertIn('Failed to run command \'[\'false\'', the_exception.message) self.assertIn('Failed to run command \'[\'false\'', str(the_exception))