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_verify.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_verify.py')
-rw-r--r-- | tests/test_verify.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_verify.py b/tests/test_verify.py index 79c5513..1f3170b 100644 --- a/tests/test_verify.py +++ b/tests/test_verify.py @@ -24,6 +24,8 @@ from gemato.verify import ( verify_entry_compatibility, ) +from tests.testutil import disallow_writes + TEST_STRING = b'The quick brown fox jumps over the lazy dog' @@ -46,6 +48,7 @@ def test_tree(tmp_path_factory): unix_sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) unix_sock.bind(str(tmp_path / 'unix-socket')) unix_sock.listen(1) + disallow_writes(tmp_path) yield tmp_path unix_sock.close() |