If I have a file starting with "test_", PyCharm tries to run this with PyTest. I want to run it normally (like a regular Python script). How can i do this?
Change using solution: As A. Romau noted, there are ways to do this:
None of the solutions are good. 1 is inconvenient because you need to go through a big click and process for each file that you might want to run this way. 2 is inconvenient because it prevents you from starting pytest normally from the console.
JetBrains: Please, for the love of God, simply add an option to turn off automatic deletion. This is very annoying, because the output of pytest / UnitTest is not as useful as the output of a regular interpreter when trying to track errors in tests (there are no links to the error string, it cannot easily run this function alone, etc.).
The "PyCharm Problem" was discovered here .
Peter source share