mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
Add test for ASCII filenames (#4345)
This commit is contained in:
parent
69c674bdbf
commit
4f905ac9e6
|
@ -120,3 +120,12 @@ def test_create_symlink_windows(
|
||||||
symlink_to(symlink, symlink_target)
|
symlink_to(symlink, symlink_target)
|
||||||
|
|
||||||
assert not symlink.exists()
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user