diff options
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 a7255c41c5..32cba13e5f 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) |