-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when the test asks for prompt #97
Comments
Once again, sorry for approximate english |
Interesting. I find it a bit weird that you'd end up in that state due to a syntax error in the source code, but let's leave that aside as you already have issues open for that.. I guess we could be gentler when shutting down. Maybe sending a signal to the testing process and waiting for a timeout. The user could kill hard by pressing ctrl+c again. We should make it clear that we are waiting and that you can kill hard with a second ctrl+c. |
As I see it, the issue is more about reacting when the test asks for a prompt, rather than exiting gently, especially when it can be due to another suit of tests... Do you see what I mean ? |
I think that needs to be fixed too, but if we just handle this you'll still not be able to get this to work. |
@broxane As a shim for this hangup, you may be able to use my
The test should still run fine (without that above assert) even if the 'yes/no' prompt doesn't occur, b/c the pre-loaded "yes\n" would just be discarded. |
Hi, it's me again, and it is again about a django-related behaviour.
Sometimes, when you stop a test with
ctrl+C
(or when the test failed to execute, for instance because of a syntax error), the test database could not be exited properly, so the next time a test is run, you have this prompt :Mutmut does not like it very much :
The text was updated successfully, but these errors were encountered: