[New-bugs-announce] [issue22756] testAssertEqualSingleLine gives poor errors
Robert Collins
report at bugs.python.org
Wed Oct 29 03:24:57 CET 2014
New submission from Robert Collins:
found while backporting unittest fixes.
The current test fails like so:
======================================================================
FAIL: testAssertEqualSingleLine (unittest2.test.test_case.Test_TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/robertc/work/unittest2.hg/unittest2/test/test_case.py", line 1014, in testAssertEqualSingleLine
self.assertEqual(sample_text, revised_sample_text)
AssertionError: 'laden swallows fly slowly' != 'unladen swallows fly quickly'
- laden swallows fly slowly? ^^^^
+ unladen swallows fly quickly? ++ ^^^^^
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/robertc/work/unittest2.hg/unittest2/test/test_case.py", line 1017, in testAssertEqualSingleLine
self.assertTrue(sample_text_error == error)
AssertionError: False is not true
-> it shouldn't be using assertTrue.
----------
messages: 230194
nosy: rbcollins
priority: normal
severity: normal
status: open
title: testAssertEqualSingleLine gives poor errors
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22756>
_______________________________________
More information about the New-bugs-announce
mailing list