@@ -539,7 +539,8 @@ def test_sort():
539539 line_profiler_output_file = line_profiler_output_file ,
540540 )
541541 tmp_lpr = list (line_profile_results ["timings" ].keys ())
542- assert len (tmp_lpr ) == 1 and line_profile_results ["timings" ][tmp_lpr [0 ]][0 ][1 ] == 2
542+ if sys .platform != "win32" :
543+ assert len (tmp_lpr ) == 1 and line_profile_results ["timings" ][tmp_lpr [0 ]][0 ][1 ] == 2
543544 finally :
544545 if computed_fn_opt :
545546 func_optimizer .write_code_and_helpers (
@@ -806,7 +807,8 @@ def test_sort_parametrized(input, expected_output):
806807 line_profiler_output_file = line_profiler_output_file ,
807808 )
808809 tmp_lpr = list (line_profile_results ["timings" ].keys ())
809- assert len (tmp_lpr ) == 1 and line_profile_results ["timings" ][tmp_lpr [0 ]][0 ][1 ] == 3
810+ if sys .platform != "win32" :
811+ assert len (tmp_lpr ) == 1 and line_profile_results ["timings" ][tmp_lpr [0 ]][0 ][1 ] == 3
810812 finally :
811813 if computed_fn_opt :
812814 func_optimizer .write_code_and_helpers (
@@ -1161,7 +1163,8 @@ def test_sort_parametrized_loop(input, expected_output):
11611163 line_profiler_output_file = line_profiler_output_file ,
11621164 )
11631165 tmp_lpr = list (line_profile_results ["timings" ].keys ())
1164- assert len (tmp_lpr ) == 1 and line_profile_results ["timings" ][tmp_lpr [0 ]][0 ][1 ] == 6
1166+ if sys .platform != "win32" :
1167+ assert len (tmp_lpr ) == 1 and line_profile_results ["timings" ][tmp_lpr [0 ]][0 ][1 ] == 6
11651168 finally :
11661169 if computed_fn_opt :
11671170 func_optimizer .write_code_and_helpers (
@@ -1439,7 +1442,8 @@ def test_sort():
14391442 line_profiler_output_file = line_profiler_output_file ,
14401443 )
14411444 tmp_lpr = list (line_profile_results ["timings" ].keys ())
1442- assert len (tmp_lpr ) == 1 and line_profile_results ["timings" ][tmp_lpr [0 ]][0 ][1 ] == 3
1445+ if sys .platform != "win32" :
1446+ assert len (tmp_lpr ) == 1 and line_profile_results ["timings" ][tmp_lpr [0 ]][0 ][1 ] == 3
14431447 finally :
14441448 if computed_fn_opt is True :
14451449 func_optimizer .write_code_and_helpers (
0 commit comments