You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2010/03/25 18:43:27 UTC
svn commit: r927522 -
/qpid/trunk/qpid/python/qpid/tests/messaging/endpoints.py
Author: rhs
Date: Thu Mar 25 17:43:27 2010
New Revision: 927522
URL: http://svn.apache.org/viewvc?rev=927522&view=rev
Log:
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.
Modified:
qpid/trunk/qpid/python/qpid/tests/messaging/endpoints.py
Modified: qpid/trunk/qpid/python/qpid/tests/messaging/endpoints.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/tests/messaging/endpoints.py?rev=927522&r1=927521&r2=927522&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/tests/messaging/endpoints.py (original)
+++ qpid/trunk/qpid/python/qpid/tests/messaging/endpoints.py Thu Mar 25 17:43:27 2010
@@ -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
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org