@@ -2398,15 +2398,15 @@ def expect_failure(self, *args):
23982398 def test_external (self ):
23992399 CLINIC_TEST = 'clinic.test.c'
24002400 source = support .findfile (CLINIC_TEST )
2401- with open (source , 'r' , encoding = 'utf-8' ) as f :
2401+ with open (source , encoding = 'utf-8' ) as f :
24022402 orig_contents = f .read ()
24032403
24042404 # Run clinic CLI and verify that it does not complain.
24052405 self .addCleanup (unlink , TESTFN )
24062406 out = self .expect_success ("-f" , "-o" , TESTFN , source )
24072407 self .assertEqual (out , "" )
24082408
2409- with open (TESTFN , 'r' , encoding = 'utf-8' ) as f :
2409+ with open (TESTFN , encoding = 'utf-8' ) as f :
24102410 new_contents = f .read ()
24112411
24122412 self .assertEqual (new_contents , orig_contents )
@@ -2466,7 +2466,7 @@ def test_cli_force(self):
24662466 "/*[clinic end generated code: "
24672467 "output=c16447c01510dfb3 input=9543a8d2da235301]*/\n "
24682468 )
2469- with open (fn , 'r' , encoding = 'utf-8' ) as f :
2469+ with open (fn , encoding = 'utf-8' ) as f :
24702470 generated = f .read ()
24712471 self .assertTrue (generated .endswith (checksum ),
24722472 (generated , checksum ))
0 commit comments