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