def test_file_size_shrinks(self):
        """Test size of queue file shrinks when popping items"""
        q = self.queue()
        q.push(b'a')
        q.push(b'b')
        q.close()
        size = os.path.getsize(self.qpath)
        q = self.queue()
        q.pop()
        q.close()
        assert os.path.getsize(self.qpath), size
Test size of queue file shrinks when popping items
stackoverflow/venv/lib/python3.6/site-packages/queuelib/tests/test_queue.py