@@ -433,7 +433,7 @@ def get_next(self):
433
433
proc .send_signal (signal .SIGINT )
434
434
if proc .poll () is not None :
435
435
log_out .seek (0 ), log_err .seek (0 )
436
- [stdout , stderr ] = [file .read ().decode ('utf-8' ) for file in (log_out , log_err )]
436
+ [stdout , stderr ] = [log_file .read ().decode ('utf-8' ) for log_file in (log_out , log_err )]
437
437
log_out .close (), log_err .close ()
438
438
if proc .returncode == TEST_EXIT_PASSED and stderr == "" :
439
439
status = "Passed"
@@ -490,7 +490,7 @@ def check_script_list(src_dir):
490
490
Check that there are no scripts in the functional tests directory which are
491
491
not being run by pull-tester.py."""
492
492
script_dir = src_dir + '/test/functional/'
493
- python_files = set ([file for file in os .listdir (script_dir ) if file .endswith (".py" )])
493
+ python_files = set ([test_file for test_file in os .listdir (script_dir ) if test_file .endswith (".py" )])
494
494
missed_tests = list (python_files - set (map (lambda x : x .split ()[0 ], ALL_SCRIPTS + NON_SCRIPTS )))
495
495
if len (missed_tests ) != 0 :
496
496
print ("%sWARNING!%s The following scripts are not being run: %s. Check the test lists in test_runner.py." % (BOLD [1 ], BOLD [0 ], str (missed_tests )))
@@ -550,17 +550,17 @@ def _get_uncovered_rpc_commands(self):
550
550
if not os .path .isfile (coverage_ref_filename ):
551
551
raise RuntimeError ("No coverage reference found" )
552
552
553
- with open (coverage_ref_filename , 'r' ) as file :
554
- all_cmds .update ([line .strip () for line in file .readlines ()])
553
+ with open (coverage_ref_filename , 'r' ) as coverage_ref_file :
554
+ all_cmds .update ([line .strip () for line in coverage_ref_file .readlines ()])
555
555
556
556
for root , dirs , files in os .walk (self .dir ):
557
557
for filename in files :
558
558
if filename .startswith (coverage_file_prefix ):
559
559
coverage_filenames .add (os .path .join (root , filename ))
560
560
561
561
for filename in coverage_filenames :
562
- with open (filename , 'r' ) as file :
563
- covered_cmds .update ([line .strip () for line in file .readlines ()])
562
+ with open (filename , 'r' ) as coverage_file :
563
+ covered_cmds .update ([line .strip () for line in coverage_file .readlines ()])
564
564
565
565
return all_cmds - covered_cmds
566
566
0 commit comments