Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output test failures on stderr in regrtest.py #51359

Closed
ezio-melotti opened this issue Oct 12, 2009 · 4 comments
Closed

Output test failures on stderr in regrtest.py #51359

ezio-melotti opened this issue Oct 12, 2009 · 4 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@ezio-melotti
Copy link
Member

BPO 7110
Nosy @warsaw, @doko42, @ezio-melotti, @merwok, @bitdancer, @florentx, @sandrotosi
Files
  • stdout_stderr.txt: Log showing an example of two tracebacks sent to stdout and stderr.
  • issue7110-py3k.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2010-09-29.01:09:36.359>
    created_at = <Date 2009-10-12.08:08:53.084>
    labels = ['type-bug', 'tests']
    title = 'Output test failures on stderr in regrtest.py'
    updated_at = <Date 2010-12-04.17:29:49.914>
    user = 'https://github.com/ezio-melotti'

    bugs.python.org fields:

    activity = <Date 2010-12-04.17:29:49.914>
    actor = 'r.david.murray'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-09-29.01:09:36.359>
    closer = 'r.david.murray'
    components = ['Tests']
    creation = <Date 2009-10-12.08:08:53.084>
    creator = 'ezio.melotti'
    dependencies = []
    files = ['15108', '19016']
    hgrepos = []
    issue_num = 7110
    keywords = ['patch']
    message_count = 4.0
    messages = ['93889', '117391', '117572', '123376']
    nosy_count = 8.0
    nosy_names = ['barry', 'doko', 'ezio.melotti', 'eric.araujo', 'Arfrever', 'r.david.murray', 'flox', 'sandro.tosi']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue7110'
    versions = ['Python 3.2']

    @ezio-melotti
    Copy link
    Member Author

    regrtest.py should output all the names of the tests that fail and their
    tracebacks on stderr.
    This will provide an easy way to filter out the relevant information
    (errors and tracebacks) from all the other outputs.

    The current behavior seems incoherent, some tracebacks are sent to
    stdout and other to stderr (see attached log).

    @ezio-melotti ezio-melotti added type-feature A feature request or enhancement tests Tests in the Lib/test dir labels Oct 12, 2009
    @sandrotosi
    Copy link
    Contributor

    Hello,
    the attached patch seems to do the trick, at least on what I can verify here on my machine. I'd appreciate a bit more of test from more experienced developers, just to catch corner cases I didn't see.

    Regards,
    Sandro

    @bitdancer
    Copy link
    Member

    Looks good to me. Committed in r85086. Thanks, Sandro.

    @bitdancer
    Copy link
    Member

    I've decided that writing (some) errors to stdout instead of stderr is really a bug, not a feature request, and have backported this fix to 3.1 in r87053 and to 2.7 in r87055.

    The one possible reason not to do this is that it is conceivable that it would affect the error reporting from an automated acceptance test (say for a distro). This seems unlikely to me, but if anyone thinks it is a serious concern I'll back out the backports.

    @bitdancer bitdancer added type-bug An unexpected behavior, bug, or error and removed type-feature A feature request or enhancement labels Dec 4, 2010
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants