Fix tests on Windows

Fix #377
This commit is contained in:
Julien Duponchelle committed 2015-12-22 13:16:30 +01:00
1 parent 28533cfdac
commit 61cf91d83c
4 files changed
+33 -11

No files matched your search

+1
View File
@@ -211,6 +211,7 @@ def test_add_nio_binding_udp(vm):
assert nio.lport == 4242
@pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
def test_add_nio_binding_tap(vm, ethernet_device):
with patch("gns3server.modules.base_manager.BaseManager.has_privileged_access", return_value=True):
nio = VPCS.instance().create_nio(vm.vpcs_path, {"type": "nio_tap", "tap_device": ethernet_device})