@@ -22,16 +22,16 @@ def setUp(self):
22
22
self .addCleanup (support .unlink , self .temp_file )
23
23
24
24
def pathfix (self , shebang , pathfix_flags , exitcode = 0 , stdout = '' , stderr = '' ,
25
- target_file = '' ):
26
- if target_file == '' :
27
- target_file = self .temp_file
25
+ filename = '' ):
26
+ if filename == '' :
27
+ filename = self .temp_file
28
28
29
29
with open (self .temp_file , 'w' , encoding = 'utf8' ) as f :
30
30
f .write (f'{ shebang } \n ' + 'print("Hello world")\n ' )
31
31
32
32
proc = subprocess .run (
33
33
[sys .executable , self .script ,
34
- * pathfix_flags , '-n' , target_file ],
34
+ * pathfix_flags , '-n' , filename ],
35
35
capture_output = True , text = 1 )
36
36
37
37
if stdout == '' and proc .returncode == 0 :
@@ -61,7 +61,7 @@ def test_recursive(self):
61
61
method_name != 'test_recursive' and \
62
62
method_name != 'test_pathfix_adding_errors' and \
63
63
callable (method ):
64
- method (target_file = self .temp_directory , stderr = expected_stderr )
64
+ method (filename = self .temp_directory , stderr = expected_stderr )
65
65
66
66
def test_pathfix (self , ** kwargs ):
67
67
self .assertEqual (
0 commit comments