@@ -151,9 +151,8 @@ def test_dynamic_alone(self):
151151 self .start_import_stop (cov , "two_tests" )
152152 data = cov .get_data ()
153153
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" ]
157156 self .assertCountEqual (data .measured_contexts (), ["" , "test_one" , "test_two" ])
158157 self .assertCountEqual (data .lines (fname , "" ), self .OUTER_LINES )
159158 self .assertCountEqual (data .lines (fname , "test_one" ), self .TEST_ONE_LINES )
@@ -166,9 +165,8 @@ def test_static_and_dynamic(self):
166165 self .start_import_stop (cov , "two_tests" )
167166 data = cov .get_data ()
168167
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" ]
172170 self .assertCountEqual (data .measured_contexts (), ["stat" , "stat:test_one" , "stat:test_two" ])
173171 self .assertCountEqual (data .lines (fname , "stat" ), self .OUTER_LINES )
174172 self .assertCountEqual (data .lines (fname , "stat:test_one" ), self .TEST_ONE_LINES )
0 commit comments