aboutsummaryrefslogtreecommitdiff
path: root/tests/test_utils_filesystem.py
diff options
context:
space:
mode:
authorBenjamin Klimczak <benjamin.klimczak@arm.com>2023-08-24 16:38:47 +0100
committerBenjamin Klimczak <benjamin.klimczak@arm.com>2023-09-05 14:20:08 +0100
commite5a0bc3ecd4d9c46ead3b8217584eaa916a3afa4 (patch)
tree94c348fcef50326a755a049a2a4027f588211f8b /tests/test_utils_filesystem.py
parent900c3c52b681e0b8a4454e2e2cf29265d53a2c98 (diff)
downloadmlia-e5a0bc3ecd4d9c46ead3b8217584eaa916a3afa4.tar.gz
MLIA-961 Update tox dependencies
- Update version dependencies in the tox.ini - Fix linter issues Change-Id: I04c3a841ee2646a865dab037701d66c28792f2a4 Signed-off-by: Benjamin Klimczak <benjamin.klimczak@arm.com>
Diffstat (limited to 'tests/test_utils_filesystem.py')
-rw-r--r--tests/test_utils_filesystem.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_utils_filesystem.py b/tests/test_utils_filesystem.py
index 654f5c8..c1c9876 100644
--- a/tests/test_utils_filesystem.py
+++ b/tests/test_utils_filesystem.py
@@ -40,12 +40,12 @@ def test_get_mlia_target_profiles() -> None:
@pytest.mark.parametrize("raise_exception", [True, False])
def test_temp_file(raise_exception: bool) -> None:
"""Test temp_file context manager."""
- with contextlib.suppress(Exception):
+ with contextlib.suppress(RuntimeError):
with temp_file() as tmp_path:
assert tmp_path.is_file()
if raise_exception:
- raise Exception("Error!")
+ raise RuntimeError("Error!")
assert not tmp_path.exists()