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

Extra info in assertion is truncated even with -vv #12307

Open
The-Compiler opened this issue May 11, 2024 · 1 comment · May be fixed by #12322
Open

Extra info in assertion is truncated even with -vv #12307

The-Compiler opened this issue May 11, 2024 · 1 comment · May be fixed by #12322
Labels
topic: reporting related to terminal output and user-facing messages and errors topic: rewrite related to the assertion rewrite mechanism type: bug problem that needs to be addressed

Comments

@The-Compiler
Copy link
Member

We've had a couple of related issue, but I couldn't find this specific case reported before.

With the current git main:

platform linux -- Python 3.12.3, pytest-8.2.0.dev99+g1d322ffb4, pluggy-1.5.0

doing something like:

def test_x():
    assert False, dir("")

results in:

    def test_x():
>       assert False, dir("")
E       AssertionError: ['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', ...]
E       assert False

and even with -vv, the output never seems to get more verbose.

@Zac-HD Zac-HD added type: bug problem that needs to be addressed topic: reporting related to terminal output and user-facing messages and errors topic: rewrite related to the assertion rewrite mechanism labels May 13, 2024
@The-Compiler
Copy link
Member Author

Might be related to (if not a duplicate of) #6682?

nicoddemus added a commit that referenced this issue Aug 5, 2024
Seems like we just missed that case when more fine-grained verbosity levels were added.

Fixes #6682, #12307
patchback bot pushed a commit that referenced this issue Aug 5, 2024
Seems like we just missed that case when more fine-grained verbosity levels were added.

Fixes #6682, #12307

(cherry picked from commit bc1e17e)
nicoddemus added a commit that referenced this issue Aug 5, 2024
…12687)

Seems like we just missed that case when more fine-grained verbosity levels were added.

Fixes #6682, #12307

(cherry picked from commit bc1e17e)

Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: reporting related to terminal output and user-facing messages and errors topic: rewrite related to the assertion rewrite mechanism type: bug problem that needs to be addressed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants