@@ -39,7 +39,7 @@ def lib_path_types(cur_dir):
3939
4040def test_location_in_main (lib , lib_path ):
4141 source = lib .get_keyword_source ("keyword_in_main" )
42- assert source == "%s:20" % lib_path
42+ assert source == f" { lib_path } :19"
4343
4444
4545def test_location_in_class (lib , lib_path_components ):
@@ -49,7 +49,7 @@ def test_location_in_class(lib, lib_path_components):
4949
5050def test_decorator_wrapper (lib_types , lib_path_types ):
5151 source = lib_types .get_keyword_source ("keyword_wrapped" )
52- assert source == "%s:74" % lib_path_types
52+ assert source == f" { lib_path_types } :73"
5353
5454
5555def test_location_in_class_custom_keyword_name (lib , lib_path_components ):
@@ -66,7 +66,7 @@ def test_no_line_number(lib, lib_path, when):
6666def test_no_path (lib , when ):
6767 when (lib )._DynamicCore__get_keyword_path (Any ()).thenReturn (None )
6868 source = lib .get_keyword_source ("keyword_in_main" )
69- assert source == ":20 "
69+ assert source == ":19 "
7070
7171
7272def test_no_path_and_no_line_number (lib , when ):
@@ -78,7 +78,7 @@ def test_no_path_and_no_line_number(lib, when):
7878
7979def test_def_in_decorator (lib_types , lib_path_types ):
8080 source = lib_types .get_keyword_source ("keyword_with_def_deco" )
81- assert source == "%s:68" % lib_path_types
81+ assert source == f" { lib_path_types } :67"
8282
8383
8484def test_error_in_getfile (lib , when ):
0 commit comments