Do not load IOU handler on Windows during tests

Fix #159
This commit is contained in:
Julien Duponchelle 2015-04-27 16:21:56 +02:00
parent 4df95efdec
commit d5ae4750e9

View File

@ -31,4 +31,6 @@ from gns3server.handlers.upload_handler import UploadHandler
from gns3server.handlers.index_handler import IndexHandler 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": if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test") or os.environ.get("PYTEST_BUILD_DOCUMENTATION") == "1":
# 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 from gns3server.handlers.api.iou_handler import IOUHandler