summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-04-13 03:09:40 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-04-13 03:09:40 (GMT)
commitba8194bd2a385d49da3e7d2f40622586ce77092c (patch)
treecfa8df4eb8b27cb0778d009d7527faf45b2f07db /Lib/test
parentb66871f1c08c4e8af6d5a6a3b289ca477ec3f0de (diff)
downloadcpython-ba8194bd2a385d49da3e7d2f40622586ce77092c.zip
cpython-ba8194bd2a385d49da3e7d2f40622586ce77092c.tar.gz
cpython-ba8194bd2a385d49da3e7d2f40622586ce77092c.tar.bz2
tty isn't supported on all boxes.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_sundry.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_sundry.py b/Lib/test/test_sundry.py
index 3fc18eb..af13684 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