Do not crash if module ioucon is loaded by tests on Windows

This commit is contained in:
Julien Duponchelle 2015-05-26 11:18:56 +02:00
parent 289b68e5c1
commit f1ab682be9

View File

@ -21,10 +21,14 @@ import socket
import sys import sys
import os import os
import select import select
try:
import fcntl import fcntl
import struct
import termios import termios
import tty import tty
except ImportError:
# On windows it's not available but this module can be included by the test suite
pass
import struct
import time import time
import argparse import argparse
import traceback import traceback