summaryrefslogtreecommitdiff
path: root/python/qpid/tests
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2010-03-25 14:38:16 +0000
committerStephen D. Huston <shuston@apache.org>2010-03-25 14:38:16 +0000
commit8fd370f84c72fb92a4cbb2de59073ad7f68feef3 (patch)
tree47704f28264f86f85e77edc5fe4c6cae93610042 /python/qpid/tests
parent3232acde586982e94b6ecd860e3930b6aefe3e69 (diff)
downloadqpid-python-8fd370f84c72fb92a4cbb2de59073ad7f68feef3.tar.gz
Use portable "/dev/null" to allow this to run on Windows as well.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@927426 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/tests')
-rw-r--r--python/qpid/tests/messaging/endpoints.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/qpid/tests/messaging/endpoints.py b/python/qpid/tests/messaging/endpoints.py
index 5888413f2f..ecf56e15e4 100644
--- a/python/qpid/tests/messaging/endpoints.py
+++ b/python/qpid/tests/messaging/endpoints.py
@@ -52,7 +52,7 @@ class SetupTests(Base):
fds = []
try:
while True:
- fds.append(os.open("/dev/null", os.O_RDONLY))
+ fds.append(os.open(os.devnull, os.O_RDONLY))
except OSError, e:
if e.errno != errno.EMFILE:
raise e