Skip to content

Commit

Permalink
Use assertIn
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Dec 19, 2024
1 parent 980003e commit a02bff9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyperf/tests/test_perf_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,16 +628,16 @@ def test_slowest(self):

def test_check_stable(self):
stdout = self.run_command('check', TELCO)
self.assertTrue(
self.assertIn(
textwrap.dedent(
"""
Benchmark was run more times than necessary to get a stable result.
Consider passing processes=7 to the Runner constructor to save time.
"""
).strip() in stdout.rstrip()
).strip(), stdout.rstrip()
)
self.assertTrue(
'The benchmark seems to be stable' in
self.assertIn(
'The benchmark seems to be stable',
stdout.rstrip()
)

Expand Down

0 comments on commit a02bff9

Please sign in to comment.