在PyCharm中运行pytest test_03.py文件,出现ERROR: file or directory not found: test_03.py,如下图所示:解决方法一:将test_03.py文件直接放到PythonDemo(即当前文件目录下)即可。
解决方法二:
使用cd命令切换到当前文件目录下。
pycharm终端运行pytest提示file or directory not found的解决办法
最新推荐文章于 2025-02-25 18:38:22 发布
在PyCharm中运行pytest test_03.py文件,出现ERROR: file or directory not found: test_03.py,如下图所示:解决方法一:将test_03.py文件直接放到PythonDemo(即当前文件目录下)即可。
解决方法二:
使用cd命令切换到当前文件目录下。