##// END OF EJS Templates
rust-pyo3: generic borrows of UnsafePyLeaked with error treatment...
rust-pyo3: generic borrows of UnsafePyLeaked with error treatment Maybe we will find later a more pleasant way to express safety. Meanwhile, these helpers are useful because of the proper error propagation, and will help to avoid too much cruft in the caller code.

File last commit:

r44446:de783805 default
r53427:73655156 default
Show More
test_estimate_sizes.py
15 lines | 274 B | text/x-python | PythonLexer
import unittest
import zstandard as zstd
from .common import (
make_cffi,
TestCase,
)
@make_cffi
class TestSizes(TestCase):
def test_decompression_size(self):
size = zstd.estimate_decompression_context_size()
self.assertGreater(size, 100000)