Mercurial > public > mercurial-scm > hg-stable
comparison contrib/python-zstandard/tests/test_module_attributes.py @ 42070:675775c33ab6
zstandard: vendor python-zstandard 0.11
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.
The project contains a vendored copy of zstandard 1.3.8. The old
version was 1.3.6. This should result in some minor performance wins.
test-check-py3-compat.t was updated to reflect now-passing tests on
Python 3.8.
Some HTTP tests were updated to reflect new zstd compression output.
# no-check-commit because 3rd party code has different style guidelines
Differential Revision: https://phab.mercurial-scm.org/D6199
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 04 Apr 2019 17:34:43 -0700 |
parents | 73fef626dae3 |
children | 69de49c4e39c |
comparison
equal
deleted
inserted
replaced
42069:668eff08387f | 42070:675775c33ab6 |
---|---|
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, 6)) | 15 self.assertEqual(zstd.ZSTD_VERSION, (1, 3, 8)) |
16 | 16 |
17 self.assertEqual(zstd.__version__, '0.10.1') | 17 self.assertEqual(zstd.__version__, '0.11.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 |
27 'COMPRESSION_RECOMMENDED_INPUT_SIZE', | 27 'COMPRESSION_RECOMMENDED_INPUT_SIZE', |
28 'COMPRESSION_RECOMMENDED_OUTPUT_SIZE', | 28 'COMPRESSION_RECOMMENDED_OUTPUT_SIZE', |
29 'DECOMPRESSION_RECOMMENDED_INPUT_SIZE', | 29 'DECOMPRESSION_RECOMMENDED_INPUT_SIZE', |
30 'DECOMPRESSION_RECOMMENDED_OUTPUT_SIZE', | 30 'DECOMPRESSION_RECOMMENDED_OUTPUT_SIZE', |
31 'MAGIC_NUMBER', | 31 'MAGIC_NUMBER', |
32 'FLUSH_BLOCK', | |
33 'FLUSH_FRAME', | |
32 'BLOCKSIZELOG_MAX', | 34 'BLOCKSIZELOG_MAX', |
33 'BLOCKSIZE_MAX', | 35 'BLOCKSIZE_MAX', |
34 'WINDOWLOG_MIN', | 36 'WINDOWLOG_MIN', |
35 'WINDOWLOG_MAX', | 37 'WINDOWLOG_MAX', |
36 'CHAINLOG_MIN', | 38 'CHAINLOG_MIN', |
37 'CHAINLOG_MAX', | 39 'CHAINLOG_MAX', |
38 'HASHLOG_MIN', | 40 'HASHLOG_MIN', |
39 'HASHLOG_MAX', | 41 'HASHLOG_MAX', |
40 'HASHLOG3_MAX', | 42 'HASHLOG3_MAX', |
43 'MINMATCH_MIN', | |
44 'MINMATCH_MAX', | |
41 'SEARCHLOG_MIN', | 45 'SEARCHLOG_MIN', |
42 'SEARCHLOG_MAX', | 46 'SEARCHLOG_MAX', |
43 'SEARCHLENGTH_MIN', | 47 'SEARCHLENGTH_MIN', |
44 'SEARCHLENGTH_MAX', | 48 'SEARCHLENGTH_MAX', |
45 'TARGETLENGTH_MIN', | 49 'TARGETLENGTH_MIN', |
53 'STRATEGY_LAZY', | 57 'STRATEGY_LAZY', |
54 'STRATEGY_LAZY2', | 58 'STRATEGY_LAZY2', |
55 'STRATEGY_BTLAZY2', | 59 'STRATEGY_BTLAZY2', |
56 'STRATEGY_BTOPT', | 60 'STRATEGY_BTOPT', |
57 'STRATEGY_BTULTRA', | 61 'STRATEGY_BTULTRA', |
62 'STRATEGY_BTULTRA2', | |
58 'DICT_TYPE_AUTO', | 63 'DICT_TYPE_AUTO', |
59 'DICT_TYPE_RAWCONTENT', | 64 'DICT_TYPE_RAWCONTENT', |
60 'DICT_TYPE_FULLDICT', | 65 'DICT_TYPE_FULLDICT', |
61 ) | 66 ) |
62 | 67 |