@@ -858,15 +858,15 @@ def write(self, b):
858858 def testRaisesControlCharacters (self ):
859859 for c0 in control_characters_c0 ():
860860 with self .subTest (c0 ):
861- base = BaseHandler ()
861+ base1 , base2 , base3 = [ BaseHandler () for _ in range ( 3 )]
862862 statusLegit = '200 OK'
863863 statusWithControlCharacters1 = c0
864864 headersLegit = [('x' , 'y' )]
865865 headersWithControlCharacters1 = [(c0 , 'y' )]
866866 headersWithControlCharacters2 = [('x' , c0 )]
867- self .assertRaises (ValueError , base .start_response , c0 , headersLegit )
868- self .assertRaises (ValueError , base .start_response , statusLegit , headersWithControlCharacters1 )
869- self .assertRaises (ValueError , base .start_response , statusLegit , headersWithControlCharacters2 )
867+ self .assertRaises (ValueError , base1 .start_response , c0 , headersLegit )
868+ self .assertRaises (ValueError , base2 .start_response , statusLegit , headersWithControlCharacters1 )
869+ self .assertRaises (ValueError , base3 .start_response , statusLegit , headersWithControlCharacters2 )
870870
871871
872872class TestModule (unittest .TestCase ):
0 commit comments