@@ -106,8 +106,11 @@ def create_file(
106106 security_attributes = win32security .SECURITY_ATTRIBUTES ()
107107 security_attributes .bInheritHandle = 0
108108 if sddl :
109- security_attributes .SECURITY_DESCRIPTOR = win32security .ConvertStringSecurityDescriptorToSecurityDescriptor (
110- sddl , win32security .SDDL_REVISION_1 ,
109+ security_attributes .SECURITY_DESCRIPTOR = (
110+ win32security .ConvertStringSecurityDescriptorToSecurityDescriptor (
111+ sddl ,
112+ win32security .SDDL_REVISION_1 ,
113+ )
111114 )
112115
113116 # Windows API call
@@ -172,8 +175,11 @@ def create_directory(path, sddl):
172175 security_attributes = win32security .SECURITY_ATTRIBUTES ()
173176 security_attributes .bInheritHandle = 0
174177 if sddl :
175- security_attributes .SECURITY_DESCRIPTOR = win32security .ConvertStringSecurityDescriptorToSecurityDescriptor (
176- sddl , win32security .SDDL_REVISION_1 ,
178+ security_attributes .SECURITY_DESCRIPTOR = (
179+ win32security .ConvertStringSecurityDescriptorToSecurityDescriptor (
180+ sddl ,
181+ win32security .SDDL_REVISION_1 ,
182+ )
177183 )
178184
179185 # Windows API call
@@ -213,7 +219,9 @@ def set_end_of_file(path, length):
213219 # Second windows API call
214220 assert handle != win32file .INVALID_HANDLE_VALUE
215221 win32file .SetFileInformationByHandle (
216- handle , SYMBOLS .FileEndOfFileInfo , length ,
222+ handle ,
223+ SYMBOLS .FileEndOfFileInfo ,
224+ length ,
217225 )
218226
219227 # Close the handle
@@ -251,7 +259,10 @@ def prepare(x):
251259 # Second windows API call
252260 assert handle != win32file .INVALID_HANDLE_VALUE
253261 win32file .SetFileTime (
254- handle , creation_time , last_access_time , last_write_time ,
262+ handle ,
263+ creation_time ,
264+ last_access_time ,
265+ last_write_time ,
255266 )
256267
257268 # Close the handle
@@ -280,7 +291,8 @@ def get_file_security(path, info):
280291def set_file_security (path , info , sddl ):
281292 # Create security descriptor
282293 descriptor = win32security .ConvertStringSecurityDescriptorToSecurityDescriptor (
283- sddl , win32security .SDDL_REVISION_1 ,
294+ sddl ,
295+ win32security .SDDL_REVISION_1 ,
284296 )
285297
286298 # Windows api call
@@ -428,7 +440,9 @@ def runner(fn, *args, **kwargs):
428440
429441
430442@pytest .mark .parametrize (
431- "test_module_path" , TEST_MODULES , ids = [path .name for path in TEST_MODULES ],
443+ "test_module_path" ,
444+ TEST_MODULES ,
445+ ids = [path .name for path in TEST_MODULES ],
432446)
433447def test_winfs (test_module_path , file_system_path , process_runner ):
434448 parser = partial (parse_argument , file_system_path )
0 commit comments