python-3.x - pytest 在警告上失败,但仅在 circleci
问题描述
我有一个 python 项目,我正在使用 circleci 对...进行自动测试
我的 circelci.yml 中的最后一行是:
python -m pytest tests/ -vv -rsx
当我在计算机上运行此命令时,测试全部通过。
当我在 circelci 上运行它时,我得到:
E DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
我知道我最终应该解决这个问题,但是警告不应该导致 pytest 失败,除非我用 -W 要求它...... circleci 会自动抛出 -W 吗?还是发生了其他事情?
解决方案
推荐阅读
- r - 将 ggplot2 与 Rshiny 一起使用:ggplot y 轴上显示的级别不正确
- c++ - 递归函数的帕斯卡三角形
- android - 双簧管音频流格式:int16_t格式会消失吗?
- laravel - 递归地将模型添加到 Scout Laravel
- node.js - Node.JS 致命错误:堆限制附近的无效标记压缩分配失败?
- sql - 在几天内运行列中唯一字符串值的总数
- javascript - 查找模式,然后通过结束新行拆分
- java - 为什么它在字符串中返回错误的重复次数?
- react-native - 选项卡导航器中的图标图像被切断 - 反应原生
- .net - 以 100 倍高效方式瞄准一个端点