diff options
author | Giampaolo RodolĂ <g.rodola@gmail.com> | 2011-02-25 21:46:01 (GMT) |
---|---|---|
committer | Giampaolo RodolĂ <g.rodola@gmail.com> | 2011-02-25 21:46:01 (GMT) |
commit | 4bc685752f9f1056545ab121db833a4a68dd794c (patch) | |
tree | 2763842dd875e0b13ec161334f046d09f2463edb /Lib/test/test_os.py | |
parent | 2035103a2572d9ebeb437e1fef577f2a8b0004d9 (diff) | |
download | cpython-4bc685752f9f1056545ab121db833a4a68dd794c.zip cpython-4bc685752f9f1056545ab121db833a4a68dd794c.tar.gz cpython-4bc685752f9f1056545ab121db833a4a68dd794c.tar.bz2 |
(issue 11323) - attempt to fix solaris buildbot failure for os.sendfile(). Also fixed an AttributeError in get/set priority tests.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 29b6b9a..358c92d 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -1282,7 +1282,7 @@ class ProgramPriorityTests(unittest.TestCase): 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 @@ class TestSendfile(unittest.TestCase): 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): |