Skip to content

Commit

Permalink
filter: add test to ensure pygit2_filter_cleanup has the GIL
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Dec 20, 2023
1 parent 8706424 commit 5cabcfe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,8 @@ def test_filter_unmatched(testrepo, unmatched_filter):
assert b'bye world\n' == reader.read()
with pygit2.BlobIO(blob, as_path="bye.txt", flags=flags) as reader:
assert b'bye world\n' == reader.read()

def test_filter_cleanup(dirtyrepo, rot13_filter):
# Indirectly test that pygit2_filter_cleanup has the GIL
# before calling pygit2_filter_payload_free.
dirtyrepo.diff()

0 comments on commit 5cabcfe

Please sign in to comment.