diff options
| author | R. David Murray <rdmurray@bitdance.com> | 2009-04-21 13:06:04 (GMT) |
|---|---|---|
| committer | R. David Murray <rdmurray@bitdance.com> | 2009-04-21 13:06:04 (GMT) |
| commit | 95fb46c9774cd3e4720174592b6d4eded7ac8fb0 (patch) | |
| tree | 7e5464495ea8ca841bd9f08c9690c17b52fa7238 /Lib/test/test_posix.py | |
| parent | 7c2867fcb1ade429a41e030585332ea26e3f60e1 (diff) | |
| download | cpython-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_posix.py')
| -rw-r--r-- | Lib/test/test_posix.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index a7255c4..32cba13 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -2,6 +2,8 @@ from test import test_support +# Skip these tests if there is no posix module. +posix = test_support.import_module('posix') import time import os @@ -10,7 +12,6 @@ import shutil import unittest import warnings -posix = test_support.import_module('posix') warnings.filterwarnings('ignore', '.* potential security risk .*', RuntimeWarning) |
