From e99c0f6ac563bca1e565dd7b0454133155c00ff9 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle <julien@duponchelle.info> Date: Mon, 9 Feb 2015 10:59:09 +0100 Subject: [PATCH] I hope it's fix tests on Travis Python 3.3 --- tests/conftest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 490a35cd..d7e4da6c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -61,7 +61,7 @@ def _get_unused_port(): @pytest.fixture(scope="session") -def server(request, loop, port_manager): +def server(request, loop, port_manager, monkeypatch): """A GNS3 server""" port = _get_unused_port() @@ -78,6 +78,7 @@ def server(request, loop, port_manager): def tear_down(): for module in MODULES: instance = module.instance() + monkeypatch.setattr('gns3server.modules.virtualbox.virtualbox_vm.VirtualBoxVM.close', lambda self: True) loop.run_until_complete(instance.unload()) srv.close() srv.wait_closed()