[debug] PyCharm runs the python script and reports "no test found" "empty suite"

Problem Description:

  • In PyCharm, right-click to run test_tensorboard.pythe script:

- Key words: 1. PyCharmRight click in the middle to run; 2. The script name teststarts with;insert image description here

Solution:

- By touching it myself, I found a solution to the problem: change the beginning of the script name to test!

python+文件名- Or run in the way used in the PyCharm terminal ;

Solution process:

- I checked a lot, some said unittest, some said other ways to modify, I tried it, but it didn't solve the problem for me;

Problem solving results:

insert image description here

Guess you like

Origin blog.csdn.net/weixin_42306148/article/details/127782882