@@ -1185,7 +1185,7 @@ def line(*args):
11851185 sys .monitoring .set_events (TEST_TOOL , 0 )
11861186 self .assertGreater (len (events ), 0 )
11871187
1188- class TestInstallIncrementallly (MonitoringTestBase , unittest .TestCase ):
1188+ class TestInstallIncrementally (MonitoringTestBase , unittest .TestCase ):
11891189
11901190 def check_events (self , func , must_include , tool = TEST_TOOL , recorders = (ExceptionRecorder ,)):
11911191 try :
@@ -1214,19 +1214,19 @@ def func1():
12141214
12151215 MUST_INCLUDE_LI = [
12161216 ('instruction' , 'func1' , 2 ),
1217- ('line' , 'func1' , 1 ),
1217+ ('line' , 'func1' , 2 ),
12181218 ('instruction' , 'func1' , 4 ),
12191219 ('instruction' , 'func1' , 6 )]
12201220
12211221 def test_line_then_instruction (self ):
12221222 recorders = [ LineRecorder , InstructionRecorder ]
12231223 self .check_events (self .func1 ,
1224- recorders = recorders , must_include = self .EXPECTED_LI )
1224+ recorders = recorders , must_include = self .MUST_INCLUDE_LI )
12251225
12261226 def test_instruction_then_line (self ):
1227- recorders = [ InstructionRecorder , LineRecorderLowNoise ]
1227+ recorders = [ InstructionRecorder , LineRecorder ]
12281228 self .check_events (self .func1 ,
1229- recorders = recorders , must_include = self .EXPECTED_LI )
1229+ recorders = recorders , must_include = self .MUST_INCLUDE_LI )
12301230
12311231 @staticmethod
12321232 def func2 ():
@@ -1241,12 +1241,12 @@ def func2():
12411241
12421242
12431243
1244- def test_line_then_instruction (self ):
1244+ def test_call_then_instruction (self ):
12451245 recorders = [ CallRecorder , InstructionRecorder ]
12461246 self .check_events (self .func2 ,
12471247 recorders = recorders , must_include = self .MUST_INCLUDE_CI )
12481248
1249- def test_instruction_then_line (self ):
1249+ def test_instruction_then_call (self ):
12501250 recorders = [ InstructionRecorder , CallRecorder ]
12511251 self .check_events (self .func2 ,
12521252 recorders = recorders , must_include = self .MUST_INCLUDE_CI )
0 commit comments