diff options
| author | 2025-07-30 10:48:25 +0100 | |
|---|---|---|
| committer | 2025-07-30 10:48:25 +0100 | |
| commit | d0a5dd3a1f35d11d9c81370afe523dfe39c0d71f (patch) | |
| tree | 21770b29a76bcbc26a8f65924396ace5ab286878 /tests | |
| parent | Add 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
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_nsjail.py | 2 | 
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() | 
