@@ -151,9 +151,8 @@ def test_dynamic_alone(self):
151
151
self .start_import_stop (cov , "two_tests" )
152
152
data = cov .get_data ()
153
153
154
- fname = os .path .abspath ("two_tests.py" )
155
- print (fname )
156
- print (data .measured_files ())
154
+ full_names = {os .path .basename (f ): f for f in data .measured_files ()}
155
+ fname = full_names ["two_tests.py" ]
157
156
self .assertCountEqual (data .measured_contexts (), ["" , "test_one" , "test_two" ])
158
157
self .assertCountEqual (data .lines (fname , "" ), self .OUTER_LINES )
159
158
self .assertCountEqual (data .lines (fname , "test_one" ), self .TEST_ONE_LINES )
@@ -166,9 +165,8 @@ def test_static_and_dynamic(self):
166
165
self .start_import_stop (cov , "two_tests" )
167
166
data = cov .get_data ()
168
167
169
- fname = os .path .abspath ("two_tests.py" )
170
- print (fname )
171
- print (data .measured_files ())
168
+ full_names = {os .path .basename (f ): f for f in data .measured_files ()}
169
+ fname = full_names ["two_tests.py" ]
172
170
self .assertCountEqual (data .measured_contexts (), ["stat" , "stat:test_one" , "stat:test_two" ])
173
171
self .assertCountEqual (data .lines (fname , "stat" ), self .OUTER_LINES )
174
172
self .assertCountEqual (data .lines (fname , "stat:test_one" ), self .TEST_ONE_LINES )
0 commit comments