This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients howarthjw, mattbillenstein, ned.deily, ronaldoussoren, serhiy.storchaka, vstinner
Date 2017-11-28.10:25:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511864736.99.0.213398074469.issue31380@psf.upfronthosting.co.za>
In-reply-to
Content
Another option is to skip this test unconditionally on macOS when using APFS, the test is already skipped on win32 and tests a generic codepath where only testing on Linux should be fine.

BTW. It is fairly easy to detect if a path is on APFS:

```
import subprocess
  
def is_apfs(path):
    lines = subprocess.check_output(['df', path]).decode('utf-8').splitlines()
    mountpoint = lines[1].split(None, 1)[0]

    lines = subprocess.check_output(['mount']).decode('utf-8').splitlines()
    for ln in lines:
        path = ln.split(None, 1)[0]
        if path == mountpoint:
            return '(apfs' in ln

    return False
```
History
Date User Action Args
2017-11-28 10:25:37ronaldoussorensetrecipients: + ronaldoussoren, vstinner, ned.deily, serhiy.storchaka, mattbillenstein, howarthjw
2017-11-28 10:25:36ronaldoussorensetmessageid: <1511864736.99.0.213398074469.issue31380@psf.upfronthosting.co.za>
2017-11-28 10:25:36ronaldoussorenlinkissue31380 messages
2017-11-28 10:25:36ronaldoussorencreate