[New-bugs-announce] [issue36585] test_posix.py fails due to unsupported RWF_HIPRI

Jeroen Demeyer report at bugs.python.org
Wed Apr 10 06:28:27 EDT 2019


New submission from Jeroen Demeyer <J.Demeyer at UGent.be>:

On Linux with an old kernel:

0:03:59 load avg: 5.97 [300/420/1] test_posix failed -- running: test_tools (1 min 11 sec), test_concurrent_futures (2 min 42 sec)
test test_posix failed -- Traceback (most recent call last):
  File "/usr/local/src/sage-config/local/src/cpython/Lib/test/test_posix.py", line 311, in test_preadv_flags
    self.assertEqual(posix.preadv(fd, buf, 3, os.RWF_HIPRI), 10)
OSError: [Errno 95] Operation not supported

The problem is obvious: it's testing a flag which is not supported by this kernel. The fact that the macro RWF_HIPRI is defined (which is a compile-time condition) does not imply that the kernel actually supports it (which is a run-time condition).

----------
messages: 339844
nosy: jdemeyer, pablogsal
priority: normal
severity: normal
status: open
title: test_posix.py fails due to unsupported RWF_HIPRI

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36585>
_______________________________________


More information about the New-bugs-announce mailing list