Merge pull request #12 from gmossessian/feature-fixSnappyCompressionTest

allow snappy_compression as a default option in test_options.py::TestOptions::test_simple
This commit is contained in:
Ming-Hsuan-Tu 2018-02-15 16:01:36 +08:00 committed by GitHub
commit c32d401a25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,9 @@ class TestOptions(unittest.TestCase):
opts.comparator,
rocksdb.BytewiseComparator)
self.assertEqual(rocksdb.CompressionType.snappy_compression, opts.compression)
self.assertIn(opts.compression,
(rocksdb.CompressionType.no_compression,
rocksdb.CompressionType.snappy_compression))
opts.compression = rocksdb.CompressionType.zstd_compression
self.assertEqual(rocksdb.CompressionType.zstd_compression, opts.compression)