mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 03:08:14 +00:00
I hope it's fix tests on Travis Python 3.3
This commit is contained in:
parent
bf29e0319e
commit
e99c0f6ac5
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user