File tree 2 files changed +11
-13
lines changed
2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -530,7 +530,7 @@ class WindowsFakeFSTokenRequest(TokenRequest):
530
530
@validator ("windows_fake_fs_root" )
531
531
def check_process_name (value : str ):
532
532
_value = value .strip ()
533
- invalid_chars = r'[<>:"/\\ |?*]'
533
+ invalid_chars = r'[<>:"/|?*[\] ]'
534
534
drive_pattern = r"^[A-Za-z]:[\\/]"
535
535
536
536
if not re .match (drive_pattern , _value ):
Original file line number Diff line number Diff line change @@ -95,17 +95,16 @@ def test_windows_fake_fs_token_fires(
95
95
[
96
96
(
97
97
[
98
- r"C:\Testing["
99
- r"C:\Testing<"
100
- r"C:\Testing>"
101
- r"C:\Testing:"
102
- r'C:\Testing"'
103
- r"C:\Testing/"
104
- r"C:\Testing\\"
105
- r"C:\Testing|"
106
- r"C:\Testing?"
107
- r"C:\Testing*"
108
- r"C:\Testing]"
98
+ r"C:\Testing[" ,
99
+ r"C:\Testing<" ,
100
+ r"C:\Testing>" ,
101
+ r"C:\Testing:" ,
102
+ r'C:\Testing"' ,
103
+ r"C:\Testing/" ,
104
+ r"C:\Testing|" ,
105
+ r"C:\Testing?" ,
106
+ r"C:\Testing*" ,
107
+ r"C:\Testing]" ,
109
108
],
110
109
"windows_fake_fs_root contains invalid Windows Path Characters." ,
111
110
),
@@ -126,7 +125,6 @@ def test_windows_fake_fs_token_validator(
126
125
"""
127
126
memo = "Testing"
128
127
file_structure = "testing"
129
-
130
128
for root_dir in directories :
131
129
with pytest .raises (ValueError , match = expected_error_message ):
132
130
WindowsFakeFSTokenRequest (
You can’t perform that action at this time.
0 commit comments