[Python-checkins] r88616 - python/branches/py3k/Lib/test/test_os.py
giampaolo.rodola
python-checkins at python.org
Fri Feb 25 22:46:01 CET 2011
Author: giampaolo.rodola
Date: Fri Feb 25 22:46:01 2011
New Revision: 88616
Log:
(issue 11323) - attempt to fix solaris buildbot failure for os.sendfile(). Also fixed an AttributeError in get/set priority tests.
Modified:
python/branches/py3k/Lib/test/test_os.py
Modified: python/branches/py3k/Lib/test/test_os.py
==============================================================================
--- python/branches/py3k/Lib/test/test_os.py (original)
+++ python/branches/py3k/Lib/test/test_os.py Fri Feb 25 22:46:01 2011
@@ -1282,7 +1282,7 @@
try:
os.setpriority(os.PRIO_PROCESS, os.getpid(), base)
except OSError as err:
- if err.errno != EACCESS:
+ if err.errno != errno.EACCESS:
raise
@@ -1376,7 +1376,8 @@
DATA = b"12345abcde" * 1024 * 1024 # 10 Mb
SUPPORT_HEADERS_TRAILERS = not sys.platform.startswith("linux") and \
- not sys.platform.startswith("solaris")
+ not sys.platform.startswith("solaris") and \
+ not sys.platform.startswith("sunos")
@classmethod
def setUpClass(cls):
More information about the Python-checkins
mailing list