@@ -24,9 +24,9 @@ def test_load_works_p1_ascii(self):
2424 "images" ,
2525 "netpbm_p1_mono_ascii.pbm" ,
2626 )
27- with open (test_file , "rb" ) as f :
27+ with open (test_file , "rb" ) as file :
2828 bitmap , palette = pnm .load (
29- f , b"P1" , bitmap = Bitmap_C_Interface , palette = Palette_C_Interface
29+ file , b"P1" , bitmap = Bitmap_C_Interface , palette = Palette_C_Interface
3030 )
3131 self .assertTrue (isinstance (bitmap , Bitmap_C_Interface ), bitmap )
3232 self .assertEqual (1 , bitmap .colors )
@@ -57,9 +57,9 @@ def test_load_works_p4_binary(self):
5757 "images" ,
5858 "netpbm_p4_mono_binary.pbm" ,
5959 )
60- with open (test_file , "rb" ) as f :
60+ with open (test_file , "rb" ) as file :
6161 bitmap , palette = pnm .load (
62- f , b"P4" , bitmap = Bitmap_C_Interface , palette = Palette_C_Interface
62+ file , b"P4" , bitmap = Bitmap_C_Interface , palette = Palette_C_Interface
6363 )
6464 self .assertEqual (1 , palette .num_colors )
6565 palette .validate ()
@@ -79,9 +79,9 @@ def test_load_works_p4_binary_high_res(self):
7979 "images" ,
8080 "netpbm_p4_mono_large.pbm" ,
8181 )
82- with open (test_file , "rb" ) as f :
82+ with open (test_file , "rb" ) as file :
8383 bitmap , palette = pnm .load (
84- f , b"P4" , bitmap = Bitmap_C_Interface , palette = Palette_C_Interface
84+ file , b"P4" , bitmap = Bitmap_C_Interface , palette = Palette_C_Interface
8585 )
8686 self .assertTrue (isinstance (bitmap , Bitmap_C_Interface ))
8787 self .assertEqual (1 , bitmap .colors )
0 commit comments