Skip to content

Commit a02bff9

Browse files
committed
Use assertIn
1 parent 980003e commit a02bff9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pyperf/tests/test_perf_cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -628,16 +628,16 @@ def test_slowest(self):
628628

629629
def test_check_stable(self):
630630
stdout = self.run_command('check', TELCO)
631-
self.assertTrue(
631+
self.assertIn(
632632
textwrap.dedent(
633633
"""
634634
Benchmark was run more times than necessary to get a stable result.
635635
Consider passing processes=7 to the Runner constructor to save time.
636636
"""
637-
).strip() in stdout.rstrip()
637+
).strip(), stdout.rstrip()
638638
)
639-
self.assertTrue(
640-
'The benchmark seems to be stable' in
639+
self.assertIn(
640+
'The benchmark seems to be stable',
641641
stdout.rstrip()
642642
)
643643

0 commit comments

Comments
 (0)