summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-03-25 17:43:27 +0000
committerRafael H. Schloming <rhs@apache.org>2010-03-25 17:43:27 +0000
commitf606f97e01b7c53b70793f8c74e5aa53312d97f4 (patch)
tree86bd1593cbc65d53db908c5ad0d9e8e9910710a5
parentc44d59ff549867145281b94f87bcfad3c4aa8e69 (diff)
downloadqpid-python-f606f97e01b7c53b70793f8c74e5aa53312d97f4.tar.gz
Default to "/dev/null" if os.devnull doese not exist. Hopefully now it will work on both RHEL-4 and windows at the same time.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@927522 13f79535-47bb-0310-9956-ffa450edef68
-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 ecf56e15e4..b1f00b680c 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(os.devnull, os.O_RDONLY))
+ fds.append(os.open(getattr(os, "devnull", "/dev/null"), os.O_RDONLY))
except OSError, e:
if e.errno != errno.EMFILE:
raise e