Add test for ASCII filenames
@@ -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
