From 37ee803c8634e7625c1916b4c0abb79eb62f3442 Mon Sep 17 00:00:00 2001 From: idargb Date: Wed, 31 Oct 2012 23:44:00 +0100 Subject: [PATCH] Gives Errno 111 mongodb v. 2.2.1 --- .gitignore | 3 +++ tests/test_connection.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c54b999..604515e 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ data #Mr Developer .mr.developer.cfg + +#PyCharm +.idea/ \ No newline at end of file diff --git a/tests/test_connection.py b/tests/test_connection.py index 425bb15..2d80774 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -27,7 +27,7 @@ def test_not_connect_to_mongo_raises_error(self): """[ConnectionTestCase] - Raises error when can't connect to mongo""" Connection.when.called_with(host="localhost", port=27000) \ - .should.throw(InterfaceError, "[Errno 61] Connection refused") + .should.throw(InterfaceError, "[Errno 111] Connection refused") def test_connect_to_mongo(self): """[ConnectionTestCase] - Can stabilish connection to mongo"""