Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions tests/test_profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def output_csv_func(x: int, y: int) -> None:
_simple_kernel_impl(x, y, annotation=f"output_csv={output_csv}")

# Run the profiling
profile_output = output_csv_func()
output_csv_func()

# Check for CSV files based on output_csv value
csv_files = [
Expand All @@ -689,16 +689,6 @@ def output_csv_func(x: int, y: int) -> None:
file_path
), f"CSV file should not exist when output_csv=False: {file_path}"

# NCU report files should always exist regardless of output_csv
ncu_files = [
f"{output_dir}test_ncu-output-output_csv_func-0.ncu-rep",
f"{output_dir}test_ncu-output-output_csv_func-0.log",
]

for file_path in ncu_files:
assert os.path.exists(
file_path
), f"NCU file should always exist: {file_path}"
finally:
if os.path.exists(output_dir):
shutil.rmtree(output_dir)
Expand Down