summaryrefslogtreecommitdiff
path: root/test/test_client.py
diff options
context:
space:
mode:
authorJeff Widman <jeff@jeffwidman.com>2017-09-12 13:56:06 -0700
committerJeff Widman <jeff@jeffwidman.com>2017-09-12 13:56:06 -0700
commit84aec293f7074b4fe46741cd2be694d1efd91386 (patch)
tree3f3d17b526653c45f062aed8b8ae2d4984e0d86a /test/test_client.py
parent370169029a9104f1963227005349f1dc6420a924 (diff)
downloadkafka-python-84aec293f7074b4fe46741cd2be694d1efd91386.tar.gz
Stop using mutable types for default arg values1212-stop-using-mutable-types-for-default-arg-values
Using mutable types for default args is typically a no-no unless their surprising behavior is being explicitly abused, for an explanation see: http://effbot.org/zone/default-values.htm Fix #1212
Diffstat (limited to 'test/test_client.py')
-rw-r--r--test/test_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_client.py b/test/test_client.py
index 79ac8be..42a1623 100644
--- a/test/test_client.py
+++ b/test/test_client.py
@@ -398,7 +398,7 @@ class TestSimpleClient(unittest.TestCase):
def test_correlation_rollover(self):
with patch.object(SimpleClient, 'load_metadata_for_topics'):
big_num = 2**31 - 3
- client = SimpleClient(hosts=[], correlation_id=big_num)
+ client = SimpleClient(hosts=(), correlation_id=big_num)
self.assertEqual(big_num + 1, client._next_id())
self.assertEqual(big_num + 2, client._next_id())
self.assertEqual(0, client._next_id())