Start using my custom Popen for the tests, as well. Trying to debug the problem with close_fds=True when launching pythonw.
It is strange - but these tests fail with close_fds=True when running from pycharm - but not from the commandline.