diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-08-31 19:05:34 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-09-05 11:15:10 +0200 |
commit | 6ad33d2d0abe1cec2c19d1e1d14a8b81c3a14c43 (patch) | |
tree | a5144f3ab7f74b2ed39721ca51fe6e13d271ce6d /tests/test_find_top_level.py | |
parent | 653b7927c146c1549ddaf23afaeea9f97fdee065 (diff) | |
download | gemato-6ad33d2d0abe1cec2c19d1e1d14a8b81c3a14c43.tar.gz |
tests: Mark module-scope test dirs read-only
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'tests/test_find_top_level.py')
-rw-r--r-- | tests/test_find_top_level.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_find_top_level.py b/tests/test_find_top_level.py index 184fe72..c4df873 100644 --- a/tests/test_find_top_level.py +++ b/tests/test_find_top_level.py @@ -11,6 +11,8 @@ import pytest from gemato.find_top_level import find_top_level_manifest +from tests.testutil import disallow_writes + @pytest.fixture(scope='module') def plain_tree(tmp_path_factory): @@ -33,6 +35,7 @@ IGNORE ignored-empty-dir 'ignored-dir/Manifest'): with open(tmp_path / f, 'w'): pass + disallow_writes(tmp_path) yield tmp_path @@ -107,6 +110,7 @@ IGNORE ignored-empty-dir 'ignored-dir/Manifest.gz'): with gzip.GzipFile(tmp_path / f, 'w'): pass + disallow_writes(tmp_path) yield tmp_path |