summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/interlink_tests.py
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-05-27 13:51:07 +0000
committerGordon Sim <gsim@apache.org>2013-05-27 13:51:07 +0000
commitedc69cb984c456a5a5b0b03e2d5414876841a084 (patch)
treea67aec4361d3c196d0cc96bc2e27a370d9301305 /qpid/cpp/src/tests/interlink_tests.py
parentf1c9d4e0781d793929cb054a07f3697b55b5bffb (diff)
downloadqpid-python-edc69cb984c456a5a5b0b03e2d5414876841a084.tar.gz
QPID-4890: added workaround to test to handle issues with closing stdin of subprocesses under older python interpreters
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1486625 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/interlink_tests.py')
-rwxr-xr-xqpid/cpp/src/tests/interlink_tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/interlink_tests.py b/qpid/cpp/src/tests/interlink_tests.py
index 1bc1927bce..5c63ac9f82 100755
--- a/qpid/cpp/src/tests/interlink_tests.py
+++ b/qpid/cpp/src/tests/interlink_tests.py
@@ -73,6 +73,7 @@ class AmqpBrokerTest(BrokerTest):
print "sender config is %s" % (send_config or self.default_config)
print "receiver config is %s" % (recv_config or self.default_config)
sender = self.sender(send_config or self.default_config)
+ sender._set_cloexec_flag(sender.stdin) #required for older python, see http://bugs.python.org/issue4112
receiver = self.receiver(recv_config or self.default_config)
messages = ["message-%s" % (i+1) for i in range(count)]