llvm.org GIT mirror llvm / 81e6d00
lit: remove python2-isms Summary: `assert.assertItemEqual` went away in Python 3. Seeing how lists are ordered, comparing a list against each other should work just as well. Patch by @jbergstroem (Johan Bergström). Reviewers: modocache, gparker42 Reviewed By: modocache Differential Revision: https://reviews.llvm.org/D31229 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298479 91177308-0d34-0410-b5e6-96231b3b80d8 Brian Gesiak 2 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
8888 parsers = self.make_parsers()
8989 self.parse_test(parsers)
9090 list_parser = self.get_parser(parsers, 'MY_LIST:')
91 self.assertItemsEqual(list_parser.getValue(),
91 self.assertEqual(list_parser.getValue(),
9292 ['one', 'two', 'three', 'four'])
9393
9494 def test_commands(self):
105105 self.parse_test(parsers)
106106 custom_parser = self.get_parser(parsers, 'MY_CUSTOM:')
107107 value = custom_parser.getValue()
108 self.assertItemsEqual(value, ['a', 'b', 'c'])
108 self.assertEqual(value, ['a', 'b', 'c'])
109109
110110 def test_bad_keywords(self):
111111 def custom_parse(line_number, line, output):