Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4bc6857

Browse files
committed
(issue 11323) - attempt to fix solaris buildbot failure for os.sendfile(). Also fixed an AttributeError in get/set priority tests.
1 parent 2035103 commit 4bc6857

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/test/test_os.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ def test_set_get_priority(self):
12821282
try:
12831283
os.setpriority(os.PRIO_PROCESS, os.getpid(), base)
12841284
except OSError as err:
1285-
if err.errno != EACCESS:
1285+
if err.errno != errno.EACCESS:
12861286
raise
12871287

12881288

@@ -1376,7 +1376,8 @@ class TestSendfile(unittest.TestCase):
13761376

13771377
DATA = b"12345abcde" * 1024 * 1024 # 10 Mb
13781378
SUPPORT_HEADERS_TRAILERS = not sys.platform.startswith("linux") and \
1379-
not sys.platform.startswith("solaris")
1379+
not sys.platform.startswith("solaris") and \
1380+
not sys.platform.startswith("sunos")
13801381

13811382
@classmethod
13821383
def setUpClass(cls):

0 commit comments

Comments
 (0)