Skip to content

Commit 14896b0

Browse files
committed
Update test_instrument_tests.py
1 parent 13cff41 commit 14896b0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_instrument_tests.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,7 @@ def test_sort(self):
19241924
).replace('"', "'")
19251925
assert new_test_perf.replace('"', "'") == expected_perf.format(
19261926
module_path="code_to_optimize.tests.unittest.test_perfinjector_bubble_sort_unittest_loop_results_temp",
1927-
tmp_dir_path=get_run_tmp_file(Path("test_return_values")),
1927+
tmp_dir_path=get_run_tmp_file(Path("test_return_values")).as_posix(),
19281928
).replace('"', "'")
19291929
#
19301930
# # Overwrite old test with new instrumented test
@@ -2456,7 +2456,7 @@ def test_class_name_A_function_name():
24562456
assert success
24572457
assert new_test is not None
24582458
assert new_test.replace('"', "'") == expected.format(
2459-
tmp_dir_path=get_run_tmp_file(Path("test_return_values")),
2459+
tmp_dir_path=get_run_tmp_file(Path("test_return_values")).as_posix(),
24602460
module_path="tests.pytest.test_class_function_instrumentation_temp",
24612461
).replace('"', "'")
24622462

@@ -2527,7 +2527,7 @@ def test_common_tags_1():
25272527
assert new_test is not None
25282528
assert new_test.replace('"', "'") == expected.format(
25292529
module_path="tests.pytest.test_wrong_function_instrumentation_temp",
2530-
tmp_dir_path=get_run_tmp_file(Path("test_return_values")),
2530+
tmp_dir_path=get_run_tmp_file(Path("test_return_values")).as_posix(),
25312531
).replace('"', "'")
25322532
finally:
25332533
test_path.unlink(missing_ok=True)
@@ -2590,7 +2590,7 @@ def test_sort():
25902590
assert new_test is not None
25912591
assert new_test.replace('"', "'") == expected.format(
25922592
module_path="tests.pytest.test_conditional_instrumentation_temp",
2593-
tmp_dir_path=get_run_tmp_file(Path("test_return_values")),
2593+
tmp_dir_path=get_run_tmp_file(Path("test_return_values")).as_posix(),
25942594
).replace('"', "'")
25952595
finally:
25962596
test_path.unlink(missing_ok=True)
@@ -2667,7 +2667,7 @@ def test_sort():
26672667
assert success
26682668
formatted_expected = expected.format(
26692669
module_path="tests.pytest.test_perfinjector_bubble_sort_results_temp",
2670-
tmp_dir_path=str(get_run_tmp_file(Path("test_return_values"))),
2670+
tmp_dir_path=get_run_tmp_file(Path("test_return_values")).as_posix(),
26712671
)
26722672
assert new_test is not None
26732673
assert new_test.replace('"', "'") == formatted_expected.replace('"', "'")

0 commit comments

Comments
 (0)