[New-bugs-announce] [issue33445] test_cprofile should fail instead of displaying a message
Jeroen Demeyer
report at bugs.python.org
Tue May 8 10:29:58 EDT 2018
New submission from Jeroen Demeyer <J.Demeyer at UGent.be>:
When this test from Lib/test/test_profile.py fail, it just prints a message and doesn't fail the testsuite:
def test_cprofile(self):
results = self.do_profiling()
expected = self.get_expected_output()
self.assertEqual(results[0], 1000)
for i, method in enumerate(self.methodnames):
if results[i+1] != expected[method]:
print("Stats.%s output for %s doesn't fit expectation!" %
(method, self.profilerclass.__name__))
print('\n'.join(unified_diff(
results[i+1].split('\n'),
expected[method].split('\n'))))
----------
components: Tests
messages: 316287
nosy: jdemeyer
priority: normal
severity: normal
status: open
title: test_cprofile should fail instead of displaying a message
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33445>
_______________________________________
More information about the New-bugs-announce
mailing list