Mercurial > public > mercurial-scm > hg
comparison contrib/python-zstandard/tests/test_module_attributes.py @ 42937:69de49c4e39c
zstandard: vendor python-zstandard 0.12
The upstream source distribution from PyPI was extracted. Unwanted
files were removed.
The clang-format ignore list was updated to reflect the new source
of files.
test-repo-compengines.t was updated to reflect a change in behavior
of the zstd library.
The project contains a vendored copy of zstandard 1.4.3. The old
version was 1.3.8. This should result in some minor performance wins.
# no-check-commit because 3rd party code has different style guidelines
Differential Revision: https://phab.mercurial-scm.org/D6858
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 15 Sep 2019 20:04:00 -0700 |
parents | 675775c33ab6 |
children | de7838053207 |
comparison
equal
deleted
inserted
replaced
42936:2da754532dd3 | 42937:69de49c4e39c |
---|---|
10 | 10 |
11 | 11 |
12 @make_cffi | 12 @make_cffi |
13 class TestModuleAttributes(unittest.TestCase): | 13 class TestModuleAttributes(unittest.TestCase): |
14 def test_version(self): | 14 def test_version(self): |
15 self.assertEqual(zstd.ZSTD_VERSION, (1, 3, 8)) | 15 self.assertEqual(zstd.ZSTD_VERSION, (1, 4, 3)) |
16 | 16 |
17 self.assertEqual(zstd.__version__, '0.11.0') | 17 self.assertEqual(zstd.__version__, '0.12.0') |
18 | 18 |
19 def test_constants(self): | 19 def test_constants(self): |
20 self.assertEqual(zstd.MAX_COMPRESSION_LEVEL, 22) | 20 self.assertEqual(zstd.MAX_COMPRESSION_LEVEL, 22) |
21 self.assertEqual(zstd.FRAME_HEADER, b'\x28\xb5\x2f\xfd') | 21 self.assertEqual(zstd.FRAME_HEADER, b'\x28\xb5\x2f\xfd') |
22 | 22 |