Skip to content

Commit

Permalink
Fix test that did not take into account new warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Dec 19, 2024
1 parent 441d714 commit 35904c5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion brian2/tests/test_cpp_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,16 @@ def test_delete_directory():
assert os.path.isfile(dummy_file)
with catch_logs() as logs:
device.delete(directory=True, force=True)
assert len(logs) == 0
assert (
len(
[
l
for l in logs
if l[1] == "brian2.devices.cpp_standalone.device.delete_skips_directory"
]
)
== 0
)
# everything should be deleted
assert not os.path.exists(device.project_dir)

Expand Down

0 comments on commit 35904c5

Please sign in to comment.