@@ -30,6 +30,17 @@ def hook_re():
30
30
pytest .param ('com7.dat' , id = 'com with digit' ),
31
31
pytest .param (':' , id = 'bare colon' ),
32
32
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' ),
33
44
),
34
45
)
35
46
def test_check_illegal_windows_names_matches (hook_re , s ):
@@ -42,6 +53,10 @@ def test_check_illegal_windows_names_matches(hook_re, s):
42
53
pytest .param ('README.md' , id = 'standard file' ),
43
54
pytest .param ('foo.aux' , id = 'as ext' ),
44
55
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' ),
45
60
),
46
61
)
47
62
def test_check_illegal_windows_names_does_not_match (hook_re , s ):
0 commit comments