diff options
author | Ask Solem <ask@celeryproject.org> | 2013-02-08 12:16:50 +0000 |
---|---|---|
committer | Ask Solem <ask@celeryproject.org> | 2013-02-08 12:16:50 +0000 |
commit | 515b0c0990153bdf6dcf27450a51b185b4f57589 (patch) | |
tree | d187dde4e809fd21056f68283837b434386e3bc9 /kombu/tests/test_common.py | |
parent | 42ad3c86ff07e6415f9f753d55ef0ec2b6f8f47e (diff) | |
download | kombu-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.py | 4 |
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) |