代码之家  ›  专栏  ›  技术社区  ›  Joshua

如何禁用pytest转储源代码?

  •  0
  • Joshua  · 技术社区  · 7 年前

    是否可以从转储源代码中禁用pytest,并且只保留堆栈跟踪?堆栈跟踪通常足以跟踪问题。

    我已经搜索了一点,但我能找到的都是与 --show-capture .

    1 回复  |  直到 7 年前
        1
  •  10
  •   Samarth    7 年前

    你可以使用 --tb --tb=short 或 --tb=native 根据你的需要。查看详细的文档 here