diff --git a/.gitignore b/.gitignore index 2b16aebb..73192407 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ settings_local.py .build build -.*.sw[po] +.*.sw[pon] dist/ *.egg-info doc/__build/* diff --git a/kombu/tests/test_transport_mongodb.py b/kombu/tests/test_transport_mongodb.py index 8d041094..268867da 100644 --- a/kombu/tests/test_transport_mongodb.py +++ b/kombu/tests/test_transport_mongodb.py @@ -1,12 +1,8 @@ from __future__ import absolute_import -import sys - from kombu.connection import BrokerConnection -from .utils import TestCase -from .utils import mask_modules, Mock -from .utils import Mock, skip_if_not_module +from .utils import TestCase, skip_if_not_module class MockConnection(dict): diff --git a/kombu/tests/test_transport_redis.py b/kombu/tests/test_transport_redis.py index 86576dd0..0d86b5e2 100644 --- a/kombu/tests/test_transport_redis.py +++ b/kombu/tests/test_transport_redis.py @@ -442,7 +442,6 @@ class test_Channel(TestCase): self.assertListEqual(channel.get_table('celery'), [('celery', '', 'celery')]) - # ... then for some reason, the _kombu.binding.celery key gets lost channel.client.srem(key) diff --git a/kombu/transport/mongodb.py b/kombu/transport/mongodb.py index 71d33916..6ab80ad0 100644 --- a/kombu/transport/mongodb.py +++ b/kombu/transport/mongodb.py @@ -121,7 +121,9 @@ class Channel(virtual.Channel): # At this point we expect the hostname to be something like # (considering replica set form too): - # mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[?options]] + # + # mongodb://[username:password@]host1[:port1][,host2[:port2], + # ...[,hostN[:portN]]][/[?options]] mongoconn = Connection(host=hostname) version = mongoconn.server_info()["version"] if tuple(map(int, version.split(".")[:2])) < (1, 3):