gclient_eval: Make compatible with Python 3.

Bug: 984182
Change-Id: I9485614658efa0ea9d50ea666210af63c3b97adc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1716131
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
This commit is contained in:
Edward Lemur
2019-07-27 00:41:59 +00:00
committed by Commit Bot
parent 602076dcf2
commit ba1b1f7ab6
2 changed files with 10 additions and 12 deletions

View File

@@ -86,7 +86,7 @@ class GClientEvalTest(unittest.TestCase):
input_data = ['{'] + ['"%s": "%s",' % (n, n) for n in test_case] + ['}']
expected = [(str(n), str(n)) for n in test_case]
result = gclient_eval._gclient_eval(''.join(input_data))
self.assertEqual(expected, result.items())
self.assertEqual(expected, list(result.items()))
class ExecTest(unittest.TestCase):