File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 1313
1414import math
1515
16- try :
17- import mmh3
18- except ImportError :
19- from .lib import pymmh3 as mmh3
16+ from .lib import pymmh3 as mmh3
2017
2118
2219MAX_TRAFFIC_VALUE = 10000
Original file line number Diff line number Diff line change 11jsonschema==3.2.0
22pyrsistent==0.16.0
3- mmh3==2.5.1
43requests>=2.21
54pyOpenSSL>=19.1.0
65cryptography>=2.8.0
Original file line number Diff line number Diff line change 1212# limitations under the License.
1313
1414import json
15- import mmh3
1615import mock
1716import random
1817
1918from optimizely import bucketer
2019from optimizely import entities
2120from optimizely import logger
2221from optimizely import optimizely
23- from optimizely .lib import pymmh3
22+ from optimizely .lib import pymmh3 as mmh3
2423
2524from . import base
2625
@@ -215,7 +214,7 @@ def test_hash_values(self):
215214
216215 for i in range (10 ):
217216 random_value = str (random .random ())
218- self .assertEqual (mmh3 .hash (random_value ), pymmh3 .hash (random_value ))
217+ self .assertEqual (mmh3 .hash (random_value ), mmh3 .hash (random_value ))
219218
220219
221220class BucketerWithLoggingTest (base .BaseTest ):
You can’t perform that action at this time.
0 commit comments