summaryrefslogtreecommitdiffstats
path: root/execnet-debugfilename.patch
diff options
context:
space:
mode:
authorThomas Moschny <thm@fedoraproject.org>2012-01-17 16:37:21 +0100
committerThomas Moschny <thm@fedoraproject.org>2012-01-17 16:37:21 +0100
commit708a39949cd5e73c3f63dcdde9f1a594da77205b (patch)
tree9b0e93bdaaf0c718577fd75772f828e1aae3b6b9 /execnet-debugfilename.patch
parent982e9ca3e2a90a97bec9cf2390b3d212b3f12cb0 (diff)
downloadpython-execnet-708a39949cd5e73c3f63dcdde9f1a594da77205b.tar.gz
python-execnet-708a39949cd5e73c3f63dcdde9f1a594da77205b.tar.xz
python-execnet-708a39949cd5e73c3f63dcdde9f1a594da77205b.zip
Add upstream patch for failing test.
Diffstat (limited to 'execnet-debugfilename.patch')
-rw-r--r--execnet-debugfilename.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/execnet-debugfilename.patch b/execnet-debugfilename.patch
new file mode 100644
index 0000000..ac84a76
--- /dev/null
+++ b/execnet-debugfilename.patch
@@ -0,0 +1,17 @@
+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():