Martin Panter added the comment:

It’s a bit ugly, but I would write the test so that it is recorded as skipped:

try:
    os.copy_file_range(...)
except OSError as err:
    if err.errno != ENOSYS:
        raise  # We get to see the full exception details
    self.skipTest(err)  # Test is recorded as skipped, not passed

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26826>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to