@@ -702,7 +702,7 @@ def test_single_source(self) -> None:
702702 """Test Builder with single_source flag set"""
703703 def func (target , source , env ) -> None :
704704 """create the file"""
705- with open (str ( target [0 ]) , "w" ):
705+ with open (target [0 ], "w" ):
706706 pass
707707 if len (source ) == 1 and len (target ) == 1 :
708708 env ['CNT' ][0 ] = env ['CNT' ][0 ] + 1
@@ -759,7 +759,7 @@ def test_lists(self) -> None:
759759 """Testing handling lists of targets and source"""
760760 def function2 (target , source , env , tlist = [outfile , outfile2 ], ** kw ) -> int :
761761 for t in target :
762- with open (str ( t ) , 'w' ) as f :
762+ with open (t , 'w' ) as f :
763763 f .write ("function2\n " )
764764 for t in tlist :
765765 if t not in list (map (str , target )):
@@ -790,7 +790,7 @@ def function2(target, source, env, tlist = [outfile, outfile2], **kw) -> int:
790790
791791 def function3 (target , source , env , tlist = [sub1_out , sub2_out ]) -> int :
792792 for t in target :
793- with open (str ( t ) , 'w' ) as f :
793+ with open (t , 'w' ) as f :
794794 f .write ("function3\n " )
795795 for t in tlist :
796796 if t not in list (map (str , target )):
0 commit comments