From f1ab682be9f6b2f0aeee8b2c59416f8ae003504c Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 26 May 2015 11:18:56 +0200 Subject: [PATCH] Do not crash if module ioucon is loaded by tests on Windows --- gns3server/modules/iou/ioucon.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gns3server/modules/iou/ioucon.py b/gns3server/modules/iou/ioucon.py index 475109b6..47c542ed 100644 --- a/gns3server/modules/iou/ioucon.py +++ b/gns3server/modules/iou/ioucon.py @@ -21,10 +21,14 @@ import socket import sys import os import select -import fcntl +try: + import fcntl + import termios + import tty +except ImportError: + # On windows it's not available but this module can be included by the test suite + pass import struct -import termios -import tty import time import argparse import traceback