(tmpdir)
| 25 | |
| 26 | |
| 27 | def _check_unicode_filesystem(tmpdir): |
| 28 | filename = tmpdir / ntou('☃', 'utf-8') |
| 29 | tmpl = 'File system encoding ({encoding}) cannot support unicode filenames' |
| 30 | msg = tmpl.format(encoding=sys.getfilesystemencoding()) |
| 31 | try: |
| 32 | io.open(str(filename), 'w').close() |
| 33 | except UnicodeEncodeError: |
| 34 | pytest.skip(msg) |
| 35 | |
| 36 | |
| 37 | def ensure_unicode_filesystem(): |
no test coverage detected
searching dependent graphs…