diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2010-03-25 17:43:27 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2010-03-25 17:43:27 +0000 |
| commit | 2012f361f8e06c52108ae4df34be31d6461722a5 (patch) | |
| tree | c8a3d4a4e7cd837c1bce6525203bc69b8fa195d1 /qpid/python | |
| parent | c0789fa503a96ee99b44278528d8ef7aa72897f4 (diff) | |
| download | qpid-python-2012f361f8e06c52108ae4df34be31d6461722a5.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@927522 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
| -rw-r--r-- | qpid/python/qpid/tests/messaging/endpoints.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/python/qpid/tests/messaging/endpoints.py b/qpid/python/qpid/tests/messaging/endpoints.py index ecf56e15e4..b1f00b680c 100644 --- a/qpid/python/qpid/tests/messaging/endpoints.py +++ b/qpid/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 |
