summaryrefslogtreecommitdiff
path: root/kombu/tests/test_common.py
diff options
context:
space:
mode:
authorAsk Solem <ask@celeryproject.org>2013-02-08 12:16:50 +0000
committerAsk Solem <ask@celeryproject.org>2013-02-08 12:16:50 +0000
commit515b0c0990153bdf6dcf27450a51b185b4f57589 (patch)
treed187dde4e809fd21056f68283837b434386e3bc9 /kombu/tests/test_common.py
parent42ad3c86ff07e6415f9f753d55ef0ec2b6f8f47e (diff)
downloadkombu-515b0c0990153bdf6dcf27450a51b185b4f57589.tar.gz
2**32 is 0 on some Python 2.5 installations
Diffstat (limited to 'kombu/tests/test_common.py')
-rw-r--r--kombu/tests/test_common.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/kombu/tests/test_common.py b/kombu/tests/test_common.py
index 978687e3..d315fdbb 100644
--- a/kombu/tests/test_common.py
+++ b/kombu/tests/test_common.py
@@ -371,7 +371,9 @@ class test_QoS(TestCase):
callback = Mock()
qos = QoS(callback, 10)
qos.prev = 100
- qos.set(2 ** 32)
+ # cannot use 2 ** 32 because of a bug on OSX Py2.5:
+ # https://jira.mongodb.org/browse/PYTHON-389
+ qos.set(4294967296)
self.assertTrue(logger.warn.called)
callback.assert_called_with(prefetch_count=0)