summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_openpty.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_openpty.py')
-rw-r--r--Lib/test/test_openpty.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_openpty.py b/Lib/test/test_openpty.py
index 9272c85..e8175ff 100644
--- a/Lib/test/test_openpty.py
+++ b/Lib/test/test_openpty.py
@@ -1,10 +1,10 @@
# Test to see if openpty works. (But don't worry if it isn't available.)
import os, unittest
-from test.support import run_unittest, TestSkipped
+from test.support import run_unittest
if not hasattr(os, "openpty"):
- raise TestSkipped("No openpty() available.")
+ raise unittest.SkipTest("No openpty() available.")
class OpenptyTest(unittest.TestCase):