Skip to content

subtests: fix inconcistent handling of non-string messages#14196

Open
radoering wants to merge 2 commits intopytest-dev:mainfrom
radoering:subtests-non-string-message
Open

subtests: fix inconcistent handling of non-string messages#14196
radoering wants to merge 2 commits intopytest-dev:mainfrom
radoering:subtests-non-string-message

Conversation

@radoering
Copy link

Resolves: #14195

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Feb 15, 2026
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, but both tests pass on main, so they are not really testing the issue.

@radoering
Copy link
Author

Thanks, but both tests pass on main, so they are not really testing the issue.

How is this possible? I tested locally that the second test fails before creating the PR. I reverted the fix for now and you can see that the second test fails in CI. My branch should be up to date with main.

The first test passes without the change. I only created it as regression test for the symmetry between the subtests fixture and unittest.TestCase.subTest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

subtests: inconcistent handling of non-string messages

2 participants