title: Pytest x-dist INTERNALERROR when trying to run tests on remote Windows host using ssh
body: <p>I have Ubuntu host with environment:
  Python 3.6.9, pytest-4.6.9, execnet 1.7.1, x-dist 1.31.0</p>
  <p>and Windows host: Windows Version 10.0.19041.508, python 3.7.5, pytest 5.4.1, execnet 1.7.1</p>
  <p>I want to run tests on Windows host from Ubuntu, using x-dist plugin:
  pytest -v -d --tx ssh=admin@10.15.20.15 --rsyncdir /etc/ansible/autotests/release C:\users\Public\test_create_session.py</p>
  <p>I get errors:</p>
  <pre><code>    ============================= test session starts =============================
  platform linux -- Python 3.6.9, pytest-4.6.9, py-1.8.1, pluggy-0.13.1 -- /usr/bin/python
  cachedir: .pytest_cache
  rootdir: /etc/ansible/autotests/release
  plugins: teamcity-messages-1.27, xdist-1.31.0, forked-1.1.3
  gw0 I�� 㤠���� �믮����� 㪠������ �ணࠬ��.
  INTERNALERROR&gt; Traceback (most recent call last):
  INTERNALERROR&gt;   File &quot;/usr/local/lib/python3.6/dist-packages/_pytest/main.py&quot;, line 204, in wrap_session
  INTERNALERROR&gt;     config.hook.pytest_sessionstart(session=session)
  INTERNALERROR&gt;   File &quot;/home/test/.local/lib/python3.6/site-packages/pluggy/hooks.py&quot;, line 286, in __call__
  INTERNALERROR&gt;     return self._hookexec(self, self.get_hookimpls(), kwargs)
  INTERNALERROR&gt;   File &quot;/home/test/.local/lib/python3.6/site-packages/pluggy/manager.py&quot;, line 93, in _hookexec
  INTERNALERROR&gt;     return self._inner_hookexec(hook, methods, kwargs)
  INTERNALERROR&gt;   File &quot;/home/test/.local/lib/python3.6/site-packages/pluggy/manager.py&quot;, line 87, in &lt;lambda&gt;
  INTERNALERROR&gt;     firstresult=hook.spec.opts.get(&quot;firstresult&quot;) if hook.spec else False,
  INTERNALERROR&gt;   File &quot;/home/test/.local/lib/python3.6/site-packages/pluggy/callers.py&quot;, line 208, in _multicall
  INTERNALERROR&gt;     return outcome.get_result()
  INTERNALERROR&gt;   File &quot;/home/test/.local/lib/python3.6/site-packages/pluggy/callers.py&quot;, line 80, in get_result
  INTERNALERROR&gt;     raise ex[1].with_traceback(ex[2])
  INTERNALERROR&gt;   File &quot;/home/test/.local/lib/python3.6/site-packages/pluggy/callers.py&quot;, line 187, in _multicall
  INTERNALERROR&gt;     res = hook_impl.function(*args)
  INTERNALERROR&gt;   File &quot;/usr/local/lib/python3.6/dist-packages/xdist/dsession.py&quot;, line 78, in pytest_sessionstart
  INTERNALERROR&gt;     nodes = self.nodemanager.setup_nodes(putevent=self.queue.put)
  INTERNALERROR&gt;   File &quot;/usr/local/lib/python3.6/dist-packages/xdist/workermanage.py&quot;, line 64, in setup_nodes
  INTERNALERROR&gt;     nodes.append(self.setup_node(spec, putevent))
  INTERNALERROR&gt;   File &quot;/usr/local/lib/python3.6/dist-packages/xdist/workermanage.py&quot;, line 68, in setup_node
  INTERNALERROR&gt;     gw = self.group.makegateway(spec)
  INTERNALERROR&gt;   File &quot;/usr/local/lib/python3.6/dist-packages/execnet/multi.py&quot;, line 111, in makegateway
  INTERNALERROR&gt;     &quot;&quot;&quot;)
  INTERNALERROR&gt;   File &quot;/usr/local/lib/python3.6/dist-packages/execnet/gateway.py&quot;, line 119, in remote_exec
  INTERNALERROR&gt;     gateway_base.dumps_internal((source, call_name, kwargs)))
  INTERNALERROR&gt;   File &quot;/usr/local/lib/python3.6/dist-packages/execnet/gateway_base.py&quot;, line 710, in _send
  INTERNALERROR&gt;     message.to_io(self._io)
  INTERNALERROR&gt;   File &quot;/usr/local/lib/python3.6/dist-packages/execnet/gateway_base.py&quot;, line 130, in to_io
  INTERNALERROR&gt;     io.write(header+self.data)
  INTERNALERROR&gt;   File &quot;/usr/local/lib/python3.6/dist-packages/execnet/gateway_base.py&quot;, line 101, in write
  INTERNALERROR&gt;     self.outfile.flush()
  INTERNALERROR&gt; BrokenPipeError: [Errno 32] Broken pipe
  </code></pre>
  <p>When I run the same tests on other Windows host all works fine without errors. I think this Windows host response with something unexpected, but I can not understand what the problem. Can anybody help me?</p>