Skip to content

Conversation

@ono-max
Copy link
Contributor

@ono-max ono-max commented Jul 11, 2025

longrepr field can be multiple types such as dictionary, tuple, and string. We have handled the only dictionary case right now. This PR address the problem.

https://github.com/pytest-dev/pytest/blob/1d7d63555e431d4562bcacbdc97038b0613d20ba/src/_pytest/reports.py#L60

@ono-max ono-max requested a review from Konboi July 11, 2025 02:43
Copy link
Contributor

@Konboi Konboi left a comment

Choose a reason for hiding this comment

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

Thank you follow up, I didn't know that!


I left comment. But I'll approve not to block your task

@@ -0,0 +1,66 @@
import json
Copy link
Contributor

Choose a reason for hiding this comment

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

If the test target file is the same, I'd like to group the test code together as well.
#1073

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you! I'll merge your PR.

@sonarqubecloud
Copy link

@ono-max ono-max merged commit 3df625b into main Jul 11, 2025
15 checks passed
@ono-max ono-max deleted the fix-pytest branch July 11, 2025 04:00
@github-actions github-actions bot mentioned this pull request Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants