GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Detailed xfail output sometimes distracts from unexpected failures · Issue #1891 · gitpython-developers/GitPython

Detailed xfail output sometimes distracts from unexpected failures #1891

New issue
Copy link
New issue
Copy link
Closed
Task
#2203
Closed
Detailed xfail output sometimes distracts from unexpected failures#1891
Task
#2203
Copy link
Labels
acknowledgedhelp wanted

Description

@EliahKagan
EliahKagan
opened on Mar 31, 2024
Issue body actions

This issue is to track the problem noticed in #1853 and #1862 (see comments in both) where the specific details of new test failures are made less obvious in reading pytest output, in CI checks, due to the otherwise useful pytest 8 feature to show more such details.

From #1853 (comment):

pytest output now contains details of tests with xfail (expected failure) status, which are unrelated, and that may have distracted from the related test's failure. This changed in major version 8 of pytest (which GitPython is using automatically except on Python 3.7 which doesn't support it). Overall, for most projects, it seems to me that this is an improvement, since it's useful to be able to see the specific details of xfailing tests without extra effort (and check if they really match up with the messages written in the xfail decorators). However, it may be that for GitPython's tests it makes common tasks more cumbersome. If so, then the pytest configuration can be changed (this does not require downgrading pytest).

I'm unsure what the best solution is, but if necessary the -ra in

GitPython/pyproject.toml

Line 6 in 5364053

addopts = "--cov=git --cov-report=term --disable-warnings -ra"

can be changed to something that does not imply x (xfail). The "full list of available characters" in the Producing a detailed summary report section of the documentation documents how to specify which test statuses to emit detailed output for.

I'm unsure of what should be done and I don't know of an easy way to eliminate the distracting effects while still having the benefit of seeing specific output of xfailing tests.

Activity

  1. EliahKagan
    changed the title [-]Detailed xfail tracebacks sometimes distract from unexpected failures[/-] [+]Detailed xfail output sometimes distracts from unexpected failures[/+] on Mar 31, 2024
  2. Byron
    added
    acknowledged
    help wanted
    on Apr 2, 2024
  3. Byron
    added the
    Task
    issue type on Jul 20, 2026
  4. Byron
    closed this as completedin #2203on Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgedhelp wanted

    Type

    Task

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.