Skip to content

Commit 51c7dab

Browse files
authored
Fix tests (#1213)
1 parent 25c7f65 commit 51c7dab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_profile_general.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,8 +1619,8 @@ def test_list_metrics(binary_handler_profile_rocprof_compute):
16191619
_ = binary_handler_profile_rocprof_compute(
16201620
config, workload_dir, options, check_success=True, roof=False
16211621
)
1622-
# workload dir should be empty
1623-
assert not os.listdir(workload_dir)
1622+
# workload dir should not exist
1623+
assert not Path(workload_dir).exists()
16241624
test_utils.clean_output_dir(config["cleanup"], workload_dir)
16251625

16261626

@@ -1633,8 +1633,8 @@ def test_list_metrics_with_block(binary_handler_profile_rocprof_compute):
16331633
)
16341634
# Should return code 1 since --block cannot be used with --list-metrics
16351635
assert code == 1
1636-
# workload dir should be empty
1637-
assert not os.listdir(workload_dir)
1636+
# workload dir should not exist
1637+
assert not Path(workload_dir).exists()
16381638
test_utils.clean_output_dir(config["cleanup"], workload_dir)
16391639

16401640

0 commit comments

Comments
 (0)