Add test for ASCII filenames (#4345)

This commit is contained in:
Ines Montani 2019-09-30 18:45:30 +02:00 committed by Matthew Honnibal
parent 69c674bdbf
commit 4f905ac9e6
1 changed files with 9 additions and 0 deletions

View File

@ -120,3 +120,12 @@ def test_create_symlink_windows(
symlink_to(symlink, symlink_target)
assert not symlink.exists()
def test_ascii_filenames():
"""Test that all filenames in the project are ASCII.
See: https://twitter.com/_inesmontani/status/1177941471632211968
"""
root = Path(__file__).parent.parent
for path in root.glob("**/*"):
assert all(ord(c) < 128 for c in path.name), path.name