summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pty.py
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-04-21 13:06:04 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-04-21 13:06:04 (GMT)
commit95fb46c9774cd3e4720174592b6d4eded7ac8fb0 (patch)
tree7e5464495ea8ca841bd9f08c9690c17b52fa7238 /Lib/test/test_pty.py
parent7c2867fcb1ade429a41e030585332ea26e3f60e1 (diff)
downloadcpython-95fb46c9774cd3e4720174592b6d4eded7ac8fb0.zip
cpython-95fb46c9774cd3e4720174592b6d4eded7ac8fb0.tar.gz
cpython-95fb46c9774cd3e4720174592b6d4eded7ac8fb0.tar.bz2
Restore skips of posix and pty tests on Windows by calling the
test_support.import_module on the appropriate modules before any other imports.
Diffstat (limited to 'Lib/test/test_pty.py')
-rw-r--r--Lib/test/test_pty.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py
index 28de9ef..ddf4807 100644
--- a/Lib/test/test_pty.py
+++ b/Lib/test/test_pty.py
@@ -1,10 +1,14 @@
+from test.test_support import verbose, run_unittest, import_module
+
+#Skip these tests if either fcntl or termios is not available
+fcntl = import_module('fcntl')
+import_module('termios')
+
import errno
-import fcntl
import pty
import os
import sys
import signal
-from test.test_support import verbose, run_unittest
import unittest
TEST_STRING_1 = "I wish to buy a fish license.\n"