@@ -1185,7 +1185,7 @@ def line(*args):
1185
1185
sys .monitoring .set_events (TEST_TOOL , 0 )
1186
1186
self .assertGreater (len (events ), 0 )
1187
1187
1188
- class TestInstallIncrementallly (MonitoringTestBase , unittest .TestCase ):
1188
+ class TestInstallIncrementally (MonitoringTestBase , unittest .TestCase ):
1189
1189
1190
1190
def check_events (self , func , must_include , tool = TEST_TOOL , recorders = (ExceptionRecorder ,)):
1191
1191
try :
@@ -1214,19 +1214,19 @@ def func1():
1214
1214
1215
1215
MUST_INCLUDE_LI = [
1216
1216
('instruction' , 'func1' , 2 ),
1217
- ('line' , 'func1' , 1 ),
1217
+ ('line' , 'func1' , 2 ),
1218
1218
('instruction' , 'func1' , 4 ),
1219
1219
('instruction' , 'func1' , 6 )]
1220
1220
1221
1221
def test_line_then_instruction (self ):
1222
1222
recorders = [ LineRecorder , InstructionRecorder ]
1223
1223
self .check_events (self .func1 ,
1224
- recorders = recorders , must_include = self .EXPECTED_LI )
1224
+ recorders = recorders , must_include = self .MUST_INCLUDE_LI )
1225
1225
1226
1226
def test_instruction_then_line (self ):
1227
- recorders = [ InstructionRecorder , LineRecorderLowNoise ]
1227
+ recorders = [ InstructionRecorder , LineRecorder ]
1228
1228
self .check_events (self .func1 ,
1229
- recorders = recorders , must_include = self .EXPECTED_LI )
1229
+ recorders = recorders , must_include = self .MUST_INCLUDE_LI )
1230
1230
1231
1231
@staticmethod
1232
1232
def func2 ():
@@ -1241,12 +1241,12 @@ def func2():
1241
1241
1242
1242
1243
1243
1244
- def test_line_then_instruction (self ):
1244
+ def test_call_then_instruction (self ):
1245
1245
recorders = [ CallRecorder , InstructionRecorder ]
1246
1246
self .check_events (self .func2 ,
1247
1247
recorders = recorders , must_include = self .MUST_INCLUDE_CI )
1248
1248
1249
- def test_instruction_then_line (self ):
1249
+ def test_instruction_then_call (self ):
1250
1250
recorders = [ InstructionRecorder , CallRecorder ]
1251
1251
self .check_events (self .func2 ,
1252
1252
recorders = recorders , must_include = self .MUST_INCLUDE_CI )
0 commit comments