mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
use assert[Not]In where appropriate
This commit is contained in:
parent
8cd0a66a0f
commit
aa98058cc4
86 changed files with 622 additions and 599 deletions
|
@ -57,7 +57,7 @@ class ProfileTest(unittest.TestCase):
|
|||
stats = pstats.Stats(prof, stream=s)
|
||||
stats.print_stats()
|
||||
res = s.getvalue()
|
||||
self.assertTrue(self.expected_list_sort_output in res,
|
||||
self.assertIn(self.expected_list_sort_output, res,
|
||||
"Profiling {0!r} didn't report list.sort:\n{1}".format(stmt, res))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue