diff options
Diffstat (limited to 'Lib/test/test_profile.py')
-rw-r--r--[-rwxr-xr-x] | Lib/test/test_profile.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_profile.py b/Lib/test/test_profile.py index 243a322582..cd7ec58e23 100755..100644 --- a/Lib/test/test_profile.py +++ b/Lib/test/test_profile.py @@ -1,6 +1,5 @@ """Test suite for the profile module.""" -import os import sys import pstats import unittest @@ -72,7 +71,7 @@ class ProfileTest(unittest.TestCase): stats = pstats.Stats(prof, stream=s) stats.print_stats() res = s.getvalue() - self.assertTrue(self.expected_max_output in res, + self.assertIn(self.expected_max_output, res, "Profiling {0!r} didn't report max:\n{1}".format(stmt, res)) |