summaryrefslogtreecommitdiff
path: root/Lib/test/test_posix.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r--Lib/test/test_posix.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index 864f96373a..a7255c41c5 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -2,10 +2,6 @@
from test import test_support
-try:
- import posix
-except ImportError:
- raise unittest.SkipTest, "posix is not available"
import time
import os
@@ -13,6 +9,9 @@ import pwd
import shutil
import unittest
import warnings
+
+posix = test_support.import_module('posix')
+
warnings.filterwarnings('ignore', '.* potential security risk .*',
RuntimeWarning)