Skip to content

Commit 33d2dcc

Browse files
authored
Use assertIn in corpus_test.py (#147)
1 parent ae6accb commit 33d2dcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler_opt/rl/corpus_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ def test_cmd_override_thinlto(self):
197197
cmdline=('-something',),
198198
cmdline_is_override=True,
199199
is_thinlto=True)
200-
self.assertTrue('-fthinlto-index={context.thinlto_full_path}' in
201-
cps.module_specs[0].command_line)
200+
self.assertIn('-fthinlto-index={context.thinlto_full_path}',
201+
cps.module_specs[0].command_line)
202202
self.assertEqual(cps.module_specs[0].command_line[-6:],
203203
('-x', 'ir', '{context.module_full_path}',
204204
'-fthinlto-index={context.thinlto_full_path}', '-mllvm',

0 commit comments

Comments
 (0)