从 CS336 的 xfail 看大型工程中的测试设计Aug 23, 2026·7 minsDeep-Learning Pytest CS336 Pytorch Testing起因 # 最近在学 Stanford CS336(Language Modeling from Scratch),做 tokenizer 作业时,第一次在测试代码里见到了 pytest.mark.xfail。