From c8bb865c349d25602a7256ddcdf1801c0a9694a7 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 5 Sep 2020 18:48:01 +0200 Subject: Replace IOError/OSError whenever possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- tests/test_find_top_level.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_find_top_level.py') 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) -- cgit v1.2.3