]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
tty isn't supported on all boxes.
authorTim Peters <tim.peters@gmail.com>
Thu, 13 Apr 2006 03:09:40 +0000 (03:09 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 13 Apr 2006 03:09:40 +0000 (03:09 +0000)
Lib/test/test_sundry.py

index 3fc18eb3613cf38da669d2818415ffbcd2801697..af13684ef3dd8c2fe6e282b58971404280a1ec21 100644 (file)
@@ -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