Skip to content

Running tests on Windows causes cmd windows to rapidly pop up and disappear #5991

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

Closed
Michael0x2a opened this issue Dec 3, 2018 · 0 comments

Comments

@Michael0x2a
Copy link
Collaborator

When I try running the tests on Windows, after a certain point the tests will suddenly start spawning and killing cmd windows rapidly. Each window shows up for a fraction of a second, and disappears.

From one perspective, this is a non-issue: the temporary windows always disappear and the tests appear to finish and complete successfully. On the other hand, it's sort of alarming: I ran tests and switched over to my browser, and had a mild moment of panic when these cmd windows suddenly starting showing up and stealing focus.

I'm assuming this related to the recent work we've been doing with the windows daemon code: I can repro this fairly quickly by running pytest -k Daemon using both Powershell and the standard command prompt on Windows 10, and this behavior appears to have been introduced by abd319a.

I think ideally we'd stop making these windows appear and disappear. If that's not possible, we could instead maybe do one of the following:

  1. Have the windows spawn in the background (so they don't steal focus).
  2. Move the daemon-related tests out of pytest-fast or something so that users can opt-out of these tests by running py -3 ./runtests.py pytest-fast or something similar.
  3. Document that this is expected behavior somewhere.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant