python语言的unittest框架在执行的时候报错是什么原因? 20
C:\Python35\python.exeD:/Python_script/2/Test_Baidu1/test_case1/runtest1.pyTraceback(...
C:\Python35\python.exe D:/Python_script/2/Test_Baidu1/test_case1/runtest1.py
Traceback (most recent call last):
File "D:/Python_script/2/Test_Baidu1/test_case1/runtest1.py", line 3, in <module>
discover=unittest.defaultTestLoader.discover(test_dir,pattern='test*.py')
File "C:\Python35\lib\unittest\loader.py", line 338, in discover
raise ImportError('Start directory is not importable: %r' % start_dir)
ImportError: Start directory is not importable: './test_case1'
Process finished with exit code 1 展开
Traceback (most recent call last):
File "D:/Python_script/2/Test_Baidu1/test_case1/runtest1.py", line 3, in <module>
discover=unittest.defaultTestLoader.discover(test_dir,pattern='test*.py')
File "C:\Python35\lib\unittest\loader.py", line 338, in discover
raise ImportError('Start directory is not importable: %r' % start_dir)
ImportError: Start directory is not importable: './test_case1'
Process finished with exit code 1 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询