You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-execnet/execnet-debugfilename.patch

18 lines
812 B

diff -r 8900be7ee856 -r 1a63deea3424 testing/test_gateway.py
--- a/testing/test_gateway.py Mon Oct 24 18:03:24 2011 +0200
+++ b/testing/test_gateway.py Sat Nov 19 07:24:11 2011 +0000
@@ -350,8 +350,11 @@
monkeypatch.setenv("TEMP", tmpdir) # windows
monkeypatch.setenv('EXECNET_DEBUG', "1")
gw = execnet.makegateway("popen")
- pid = gw.remote_exec("import os ; channel.send(os.getpid())").receive()
- slavefile = tmpdir.join("execnet-debug-%s" % pid)
+ # hack out the debuffilename
+ fn = gw.remote_exec(
+ "import execnet;channel.send(execnet.gateway_base.fn)"
+ ).receive()
+ slavefile = py.path.local(fn)
assert slavefile.check()
slave_line = "creating slavegateway"
for line in slavefile.readlines():