From d5ae4750e904102c6b54459690dfd56d072c8028 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 27 Apr 2015 16:21:56 +0200 Subject: [PATCH] Do not load IOU handler on Windows during tests Fix #159 --- gns3server/handlers/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gns3server/handlers/__init__.py b/gns3server/handlers/__init__.py index 307eece3..53d65e69 100644 --- a/gns3server/handlers/__init__.py +++ b/gns3server/handlers/__init__.py @@ -31,4 +31,6 @@ from gns3server.handlers.upload_handler import UploadHandler from gns3server.handlers.index_handler import IndexHandler if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test") or os.environ.get("PYTEST_BUILD_DOCUMENTATION") == "1": - from gns3server.handlers.api.iou_handler import IOUHandler + # IOU runs only on Linux but testsuite work on UNIX platform + if not sys.platform.startswith("win"): + from gns3server.handlers.api.iou_handler import IOUHandler