(self)
| 112 | _listdir_failure = NotADirectoryError |
| 113 | |
| 114 | def test_open(self): |
| 115 | for name in self.files: |
| 116 | f = open(name, 'wb') |
| 117 | f.write((name+'\n').encode("utf-8")) |
| 118 | f.close() |
| 119 | os.stat(name) |
| 120 | self._apply_failure(os.listdir, name, self._listdir_failure) |
| 121 | |
| 122 | # Skip the test on Apple platforms, because they don't normalize the filename to |
| 123 | # NFD (a variant of Unicode NFD form). Normalize the filename to NFC, NFKC, |