Skip to content

Commit 5cabcfe

Browse files
authored
filter: add test to ensure pygit2_filter_cleanup has the GIL
1 parent 8706424 commit 5cabcfe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_filter.py

+5
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,8 @@ def test_filter_unmatched(testrepo, unmatched_filter):
128128
assert b'bye world\n' == reader.read()
129129
with pygit2.BlobIO(blob, as_path="bye.txt", flags=flags) as reader:
130130
assert b'bye world\n' == reader.read()
131+
132+
def test_filter_cleanup(dirtyrepo, rot13_filter):
133+
# Indirectly test that pygit2_filter_cleanup has the GIL
134+
# before calling pygit2_filter_payload_free.
135+
dirtyrepo.diff()

0 commit comments

Comments
 (0)