Fixes test suite failures when logging enabled. Closes #227

This commit is contained in:
Ask Solem 2013-06-25 14:22:49 +01:00
parent 9c57f5a17f
commit 95dacce13e
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,8 @@
======
:release-date: 2013-06-25 16:00 P.M BST
- Now depends on amqp 1.0.12 (Py3 compatibility issues).
- MongoDB: Removed cause of a "database name in URI is being ignored"
warning.

View File

@ -3,8 +3,10 @@ from __future__ import with_statement
import sys
from functools import partial
from mock import patch
from nose import SkipTest
from itertools import count
try:
import amqp # noqa
@ -13,6 +15,7 @@ except ImportError:
else:
from kombu.transport import pyamqp
from kombu import Connection
from kombu.utils.compat import next
from kombu.tests.utils import TestCase
from kombu.tests.utils import mask_modules, Mock
@ -43,6 +46,7 @@ class test_Channel(TestCase):
pass
self.conn = Mock()
self.conn._get_free_channel_id.side_effect = partial(next, count(0))
self.conn.channels = {}
self.channel = Channel(self.conn, 0)