Merge "Fix old python2 test issue."
This commit is contained in:
commit
85e2fc6104
|
@ -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"])
|
||||
|
|
Loading…
Reference in New Issue