@@ -539,7 +539,9 @@ 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 ] == 3
544+ assert len (tmp_lpr ) == 1 and line_profile_results ["timings" ][tmp_lpr [0 ]][0 ][1 ] == 2
543545 finally :
544546 if computed_fn_opt :
545547 func_optimizer .write_code_and_helpers (
@@ -806,7 +808,8 @@ def test_sort_parametrized(input, expected_output):
806808 line_profiler_output_file = line_profiler_output_file ,
807809 )
808810 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
811+ if sys .platform != "win32" :
812+ assert len (tmp_lpr ) == 1 and line_profile_results ["timings" ][tmp_lpr [0 ]][0 ][1 ] == 3
810813 finally :
811814 if computed_fn_opt :
812815 func_optimizer .write_code_and_helpers (
@@ -1161,7 +1164,8 @@ def test_sort_parametrized_loop(input, expected_output):
11611164 line_profiler_output_file = line_profiler_output_file ,
11621165 )
11631166 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
1167+ if sys .platform != "win32" :
1168+ assert len (tmp_lpr ) == 1 and line_profile_results ["timings" ][tmp_lpr [0 ]][0 ][1 ] == 6
11651169 finally :
11661170 if computed_fn_opt :
11671171 func_optimizer .write_code_and_helpers (
@@ -1439,7 +1443,8 @@ def test_sort():
14391443 line_profiler_output_file = line_profiler_output_file ,
14401444 )
14411445 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
1446+ if sys .platform != "win32" :
1447+ assert len (tmp_lpr ) == 1 and line_profile_results ["timings" ][tmp_lpr [0 ]][0 ][1 ] == 3
14431448 finally :
14441449 if computed_fn_opt is True :
14451450 func_optimizer .write_code_and_helpers (
0 commit comments