Merge "Fix old python2 test issue."

This commit is contained in:
Christopher Ferris 2022-08-06 01:00:25 +00:00 committed by Gerrit Code Review
commit 85e2fc6104
1 changed files with 1 additions and 1 deletions

View File

@ -1647,7 +1647,7 @@ class BlockParserTests(unittest.TestCase):
def get_blocks(self, lines):
blocks = BlockParser().parse(CppStringTokenizer('\n'.join(lines)))
return map(lambda a: str(a), blocks)
return list(map(lambda a: str(a), blocks))
def test_hash(self):
self.assertEqual(self.get_blocks(["#error hello"]), ["#error hello"])