Skip to content

Commit

Permalink
allow snappy_compression as a default option in test_options.py::Test…
Browse files Browse the repository at this point in the history
…Options::test_simple
  • Loading branch information
gmossessian committed Jun 28, 2017
1 parent 8b8feb0 commit 17277d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rocksdb/tests/test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def test_simple(self):
opts.comparator,
rocksdb.BytewiseComparator)

self.assertEqual(rocksdb.CompressionType.no_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)
Expand Down

0 comments on commit 17277d3

Please sign in to comment.