summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-09-05 18:48:01 +0200
committerMichał Górny <mgorny@gentoo.org>2020-09-05 18:49:32 +0200
commitc8bb865c349d25602a7256ddcdf1801c0a9694a7 (patch)
treefc40a41e00e59c381358415dc0b67cb81834fdbb /tests
parentf51119d8c9e65dfd1f48f5669eafb072fb15af1c (diff)
downloadgemato-c8bb865c349d25602a7256ddcdf1801c0a9694a7.tar.gz
Replace IOError/OSError whenever possible
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_find_top_level.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_find_top_level.py b/tests/test_find_top_level.py
index c4df873..47b3f1e 100644
--- a/tests/test_find_top_level.py
+++ b/tests/test_find_top_level.py
@@ -62,7 +62,7 @@ def test_unreadable_manifest(tmp_path):
"""Test failure when one of Manifest files is not readable"""
with open(tmp_path / 'Manifest', 'w') as f:
os.fchmod(f.fileno(), 0)
- with pytest.raises(IOError):
+ with pytest.raises(PermissionError):
find_top_level_manifest(tmp_path)