【发布时间】:2018-12-27 12:05:14
【问题描述】:
我创建了一个单独的文件来保存我的 Python 文件的一些自定义问题类,并且在执行以下命令时:coverage run test_syntax.py 它会打印出以下错误,如 this Travis CI 构建中所示:
Traceback (most recent call last):
File "test_syntax.py", line 9, in
from ros import main as s
File "/home/travis/build/Richienb/ROS-Code/src/ros/main.py", line 57, in
from errors import ConversionError, WrongInput, UnexpectedError
ModuleNotFoundError: No module named 'errors'
你可以找到所有的代码here
另外,我已经 cd 进入src 目录。
【问题讨论】:
标签: python python-3.x code-coverage travis-ci codecov