Please check the naming of your Python file and functions/classes, if it contains test_ - PyCharm will identify the file as a test script and will run it with a test runner. Once you fix naming - just remove the previously created run configuration in Run | Edit Configurations and run the file again. If the issue persists - do not hesitate to report it via Help | Contact Support or create an issue on YouTrack.