Message188159
| Author |
giampaolo.rodola |
| Recipients |
dmi.baranov, ezio.melotti, flox, georg.brandl, giampaolo.rodola, icordasc, lesmana, ncoghlan, petri.lehtinen, psss, terry.reedy |
| Date |
2013年04月30日.13:06:09 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1367327169.83.0.779143384662.issue12458@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> But on python-ideas, G. Rodola noted the following
> assert \
> 1 == 0, \
> "error"
[...]
> and requested that the *second* or *middle* line should be reported.
No, I was suggesting (assuming it's reasonably possible in terms of implementation) to report the whole block (3 lines) as-is.
Note that the same would apply for functions.
For example this:
self.assertEqual(1,
2)
Currently prints:
Traceback (most recent call last):
File "foo.py", line 7, in test_foo
2)
AssertionError: 1 != 2
While instead it should:
Traceback (most recent call last):
File "foo.py", line 6, in test_foo
self.assertEqual(1,
2)
AssertionError: 1 != 2 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年04月30日 13:06:09 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, georg.brandl, terry.reedy, ncoghlan, ezio.melotti, psss, flox, lesmana, petri.lehtinen, icordasc, dmi.baranov |
| 2013年04月30日 13:06:09 | giampaolo.rodola | set | messageid: <1367327169.83.0.779143384662.issue12458@psf.upfronthosting.co.za> |
| 2013年04月30日 13:06:09 | giampaolo.rodola | link | issue12458 messages |
| 2013年04月30日 13:06:09 | giampaolo.rodola | create |
|