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