我有一个Bamboo构建计划,其中Python软件包的doctests失败,并出现以下错误:
build 04-Oct-2018 09:13:51 Running doctest
build 04-Oct-2018 09:13:51 ---------------
error 04-Oct-2018 09:13:52 Traceback (most recent call last):
error 04-Oct-2018 09:13:52 File "/tools/general/app/anaconda-python-3.5/lib/python3.5/runpy.py", line 170, in _run_module_as_main
error 04-Oct-2018 09:13:52 "__main__", mod_spec)
error 04-Oct-2018 09:13:52 File "/tools/general/app/anaconda-python-3.5/lib/python3.5/runpy.py", line 85, in _run_code
error 04-Oct-2018 09:13:52 exec(code, run_globals)
error 04-Oct-2018 09:13:52 File "/tools/general/app/anaconda-python-3.5/lib/python3.5/doctest.py", line 2777, in <module>
error 04-Oct-2018 09:13:52 sys.exit(_test())
error 04-Oct-2018 09:13:52 File "/tools/general/app/anaconda-python-3.5/lib/python3.5/doctest.py", line 2765, in _test
error 04-Oct-2018 09:13:52 m = __import__(filename[:-3])
error 04-Oct-2018 09:13:52 ImportError: No module named '*'
build 04-Oct-2018 09:13:52 RUNNING DOCTEST FAILED.
看着错误和source code of doctest.py,似乎试图导入一个名为*.py
的文件?
有什么想法会如何发生以及如何解决吗?