[Python-checkins] r45332 - python/trunk/Lib/test/test_sundry.py
tim.peters
python-checkins at python.org
Thu Apr 13 05:09:42 CEST 2006
Author: tim.peters
Date: Thu Apr 13 05:09:40 2006
New Revision: 45332
Modified:
python/trunk/Lib/test/test_sundry.py
Log:
tty isn't supported on all boxes.
Modified: python/trunk/Lib/test/test_sundry.py
==============================================================================
--- python/trunk/Lib/test/test_sundry.py (original)
+++ python/trunk/Lib/test/test_sundry.py Thu Apr 13 05:09:40 2006
@@ -68,7 +68,12 @@
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
More information about the Python-checkins
mailing list