@@ -30,6 +30,17 @@ def hook_re():
3030 pytest .param ('com7.dat' , id = 'com with digit' ),
3131 pytest .param (':' , id = 'bare colon' ),
3232 pytest .param ('file:Zone.Identifier' , id = 'mid colon' ),
33+ pytest .param ('path/COM¹.json' , id = 'com with superscript' ),
34+ pytest .param ('dir/LPT³.toml' , id = 'lpt with superscript' ),
35+ pytest .param ('with < less than' , id = 'with less than' ),
36+ pytest .param ('Fast or Slow?.md' , id = 'with question mark' ),
37+ pytest .param ('with "double" quotes' , id = 'with double quotes' ),
38+ pytest .param ('with_null\x00 byte' , id = 'with null byte' ),
39+ pytest .param ('ends_with.' , id = 'ends with period' ),
40+ pytest .param ('ends_with ' , id = 'ends with space' ),
41+ pytest .param ('ends_with\t ' , id = 'ends with tab' ),
42+ pytest .param ('dir/ends./with.txt' , id = 'directory ends with period' ),
43+ pytest .param ('dir/ends /with.txt' , id = 'directory ends with space' ),
3344 ),
3445)
3546def test_check_illegal_windows_names_matches (hook_re , s ):
@@ -42,6 +53,10 @@ def test_check_illegal_windows_names_matches(hook_re, s):
4253 pytest .param ('README.md' , id = 'standard file' ),
4354 pytest .param ('foo.aux' , id = 'as ext' ),
4455 pytest .param ('com.dat' , id = 'com without digit' ),
56+ pytest .param ('.python-version' , id = 'starts with period' ),
57+ pytest .param (' pseudo nan' , id = 'with spaces' ),
58+ pytest .param ('!@#$%^&;=≤\' ~`¡¿€🤗' , id = 'with allowed characters' ),
59+ pytest .param ('path.to/file.py' , id = 'standard path' ),
4560 ),
4661)
4762def test_check_illegal_windows_names_does_not_match (hook_re , s ):
0 commit comments