Skip to content

Commit

Permalink
Fix one more warning-related issue in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Dec 19, 2024
1 parent 35904c5 commit 948dc4b
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 @@ -610,7 +610,16 @@ def test_delete_directory():
assert os.path.isfile(dummy_file)
with catch_logs() as logs:
device.delete(directory=True)
assert len(logs) == 1
assert (
len(
[
l
for l in logs
if l[1] == "brian2.devices.cpp_standalone.device.delete_skips_directory"
]
)
== 1
)
assert os.path.isfile(dummy_file)
with catch_logs() as logs:
device.delete(directory=True, force=True)
Expand Down

0 comments on commit 948dc4b

Please sign in to comment.