@@ -1168,7 +1168,7 @@ def func1():
1168
1168
('instruction' , 'func1' , 14 ),
1169
1169
('line' , 'get_events' , 11 )])
1170
1170
1171
- class TestInstallIncrementallly (MonitoringTestBase , unittest .TestCase ):
1171
+ class TestInstallIncrementally (MonitoringTestBase , unittest .TestCase ):
1172
1172
1173
1173
def check_events (self , func , must_include , tool = TEST_TOOL , recorders = (ExceptionRecorder ,)):
1174
1174
try :
@@ -1197,19 +1197,19 @@ def func1():
1197
1197
1198
1198
MUST_INCLUDE_LI = [
1199
1199
('instruction' , 'func1' , 2 ),
1200
- ('line' , 'func1' , 1 ),
1200
+ ('line' , 'func1' , 2 ),
1201
1201
('instruction' , 'func1' , 4 ),
1202
1202
('instruction' , 'func1' , 6 )]
1203
1203
1204
1204
def test_line_then_instruction (self ):
1205
1205
recorders = [ LineRecorder , InstructionRecorder ]
1206
1206
self .check_events (self .func1 ,
1207
- recorders = recorders , must_include = self .EXPECTED_LI )
1207
+ recorders = recorders , must_include = self .MUST_INCLUDE_LI )
1208
1208
1209
1209
def test_instruction_then_line (self ):
1210
- recorders = [ InstructionRecorder , LineRecorderLowNoise ]
1210
+ recorders = [ InstructionRecorder , LineRecorder ]
1211
1211
self .check_events (self .func1 ,
1212
- recorders = recorders , must_include = self .EXPECTED_LI )
1212
+ recorders = recorders , must_include = self .MUST_INCLUDE_LI )
1213
1213
1214
1214
@staticmethod
1215
1215
def func2 ():
@@ -1224,12 +1224,12 @@ def func2():
1224
1224
1225
1225
1226
1226
1227
- def test_line_then_instruction (self ):
1227
+ def test_call_then_instruction (self ):
1228
1228
recorders = [ CallRecorder , InstructionRecorder ]
1229
1229
self .check_events (self .func2 ,
1230
1230
recorders = recorders , must_include = self .MUST_INCLUDE_CI )
1231
1231
1232
- def test_instruction_then_line (self ):
1232
+ def test_instruction_then_call (self ):
1233
1233
recorders = [ InstructionRecorder , CallRecorder ]
1234
1234
self .check_events (self .func2 ,
1235
1235
recorders = recorders , must_include = self .MUST_INCLUDE_CI )
0 commit comments