aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2025-07-30 10:48:25 +0100
committerGravatar Chris Lovering <[email protected]>2025-07-30 10:48:25 +0100
commitd0a5dd3a1f35d11d9c81370afe523dfe39c0d71f (patch)
tree21770b29a76bcbc26a8f65924396ace5ab286878
parentAdd comment to explain why 3.13t can't be bumped yet (diff)
Close & unlick SharedMemory object in tests
Not doing so outputs a warning about leaking SharedMemory, which fails the test
-rw-r--r--tests/test_nsjail.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_nsjail.py b/tests/test_nsjail.py
index 6764f1e..01be592 100644
--- a/tests/test_nsjail.py
+++ b/tests/test_nsjail.py
@@ -458,6 +458,8 @@ class NsJailTests(unittest.TestCase):
shm = SharedMemory(create=True, size={shm_size})
shm.buf[:{buffer_size}] = bytearray([1] * {buffer_size})
+ shm.close()
+ shm.unlink()
"""
).strip()