From 2232283ec57bc3d5bd96f6cbd3a573951ad79a72 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Mon, 29 Aug 2016 23:17:54 -0400 Subject: [PATCH] Fix an issue with Py2-3 compatibility in the test The actual code is still running fine. --- test/test_merge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_merge.py b/test/test_merge.py index 83643a1..38881e4 100644 --- a/test/test_merge.py +++ b/test/test_merge.py @@ -1,4 +1,4 @@ -import random, string +from random import randint from metrik.merge import merge, open_connection from metrik.conf import get_config @@ -19,7 +19,7 @@ class MergeTest(MongoTest): self.client2.drop_database(self.db2_name) def test_left_right_merge(self): - item_string = ''.join(random.choice(string.lowercase) for i in range(10)) + item_string = str(randint(-9999999, 9999999)) item = {'string': item_string} item_id = self.db[self.collection_name].save(item)