This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:09giampaolo.rodolasetrecipients: + giampaolo.rodola, georg.brandl, terry.reedy, ncoghlan, ezio.melotti, psss, flox, lesmana, petri.lehtinen, icordasc, dmi.baranov
2013-04-30 13:06:09giampaolo.rodolasetmessageid: <1367327169.83.0.779143384662.issue12458@psf.upfronthosting.co.za>
2013-04-30 13:06:09giampaolo.rodolalinkissue12458 messages
2013-04-30 13:06:09giampaolo.rodolacreate