From: Tim Peters Date: Thu, 13 Apr 2006 03:09:40 +0000 (+0000) Subject: tty isn't supported on all boxes. X-Git-Tag: v2.5a2~286 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba8194bd2a385d49da3e7d2f40622586ce77092c;p=thirdparty%2FPython%2Fcpython.git tty isn't supported on all boxes. --- diff --git a/Lib/test/test_sundry.py b/Lib/test/test_sundry.py index 3fc18eb3613c..af13684ef3dd 100644 --- a/Lib/test/test_sundry.py +++ b/Lib/test/test_sundry.py @@ -68,7 +68,12 @@ import telnetlib import timeit import toaiff import token -import tty +try: + import tty # not available on Windows +except ImportError: + if verbose: + print "skipping tty" + # Can't test the "user" module -- if the user has a ~/.pythonrc.py, it # can screw up all sorts of things (esp. if it prints!). #import user