Skip to content

.3493624936399236:b7404d45aa80f3721d9cf7a6f2e3d0e9_69f1ded19838cf54136eafe3.69f1dfad9838cf54136eafe6.69f1dfad6b3aba23f986e7ef:Trae CN.T(2026/4/29 18:38:37)#14428

Closed
muyusajiangtian wants to merge 2 commits intopytest-dev:mainfrom
muyusajiangtian:pu_1

Conversation

@muyusajiangtian
Copy link
Copy Markdown

添加递归查找第一个差异路径的功能,并在断言失败时显示结构化差异信息,包括差异路径、期望值和实际值。同时更新相关测试用例以验证新功能。

新增 _find_first_diff_path 函数递归查找字典和列表中的第一个差异,并返回路径和差异值。在 assertrepr_compare 中为字典和列表类型的 == 断言添加结构化差异信息。测试用例验证了简单字典、嵌套字典和混合列表字典的差异显示。

muyusajiangtian and others added 2 commits April 29, 2026 18:55
添加递归查找第一个差异路径的功能,并在断言失败时显示结构化差异信息,包括差异路径、期望值和实际值。同时更新相关测试用例以验证新功能。

新增 `_find_first_diff_path` 函数递归查找字典和列表中的第一个差异,并返回路径和差异值。在 `assertrepr_compare` 中为字典和列表类型的 == 断言添加结构化差异信息。测试用例验证了简单字典、嵌套字典和混合列表字典的差异显示。
@The-Compiler
Copy link
Copy Markdown
Member

image

Uh, not sure what's going on there, but I'm assuming this isn't a human account. In any case, contributions must be in English (both code and PR description).

@muyusajiangtian
Copy link
Copy Markdown
Author

图片 呃,不太清楚具体情况,但我猜这不是人类的账号。无论如何,贡献必须用英语(包括代码和公关描述)。

你好,我这个PR只是在测试一个模型的功能,我是真人不是机器人
Hello, this PR is just testing the functionality of a model, I am a real person, not a robot

@The-Compiler
Copy link
Copy Markdown
Member

Please don't spam random open source projects with noise for testing things.

@muyusajiangtian
Copy link
Copy Markdown
Author

Please don't spam random open source projects with noise for testing things.

非常抱歉,给pytest带来了影响,我是个新手,不了解这样做会造成这种后果,再次致以诚挚的歉意
I am very sorry for affecting pytest. I am a beginner and did not realise that doing this would have such consequences. I sincerely apologise once again.

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.

2 participants