Skip to content

Commit eec25ce

Browse files
committed
Revert "bpo-38347: rename variable target_file to filename"
This reverts commit 07f7158.
1 parent 05c39a5 commit eec25ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Lib/test/test_tools/test_pathfix.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ def setUp(self):
2222
self.addCleanup(support.unlink, self.temp_file)
2323

2424
def pathfix(self, shebang, pathfix_flags, exitcode=0, stdout='', stderr='',
25-
filename=''):
26-
if filename == '':
27-
filename = self.temp_file
25+
target_file=''):
26+
if target_file == '':
27+
target_file = self.temp_file
2828

2929
with open(self.temp_file, 'w', encoding='utf8') as f:
3030
f.write(f'{shebang}\n' + 'print("Hello world")\n')
3131

3232
proc = subprocess.run(
3333
[sys.executable, self.script,
34-
*pathfix_flags, '-n', filename],
34+
*pathfix_flags, '-n', target_file],
3535
capture_output=True, text=1)
3636

3737
if stdout == '' and proc.returncode == 0:
@@ -61,7 +61,7 @@ def test_recursive(self):
6161
method_name != 'test_recursive' and \
6262
method_name != 'test_pathfix_adding_errors' and \
6363
callable(method):
64-
method(filename=self.temp_directory, stderr=expected_stderr)
64+
method(target_file=self.temp_directory, stderr=expected_stderr)
6565

6666
def test_pathfix(self, **kwargs):
6767
self.assertEqual(

0 commit comments

Comments
 (0)