summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ioctl.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-03-26 20:48:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-03-26 20:48:25 (GMT)
commit888a39b54c4f47ee25d53b157e2c50402627cd0b (patch)
tree67a48f107d83b8451e338f1ea822f2b4c65f6960 /Lib/test/test_ioctl.py
parent21f6aac633a78271e762d6cd4b709e6a91d0c42a (diff)
downloadcpython-888a39b54c4f47ee25d53b157e2c50402627cd0b.zip
cpython-888a39b54c4f47ee25d53b157e2c50402627cd0b.tar.gz
cpython-888a39b54c4f47ee25d53b157e2c50402627cd0b.tar.bz2
remove test_support.TestSkipped and just use unittest.SkipTest
Diffstat (limited to 'Lib/test/test_ioctl.py')
-rw-r--r--Lib/test/test_ioctl.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_ioctl.py b/Lib/test/test_ioctl.py
index d46b10d..cc79e1f 100644
--- a/Lib/test/test_ioctl.py
+++ b/Lib/test/test_ioctl.py
@@ -1,18 +1,18 @@
import unittest
-from test.test_support import TestSkipped, run_unittest
+from test.test_support import SkipTest, run_unittest
import os, struct
try:
import fcntl, termios
except ImportError:
- raise TestSkipped("No fcntl or termios module")
+ raise SkipTest("No fcntl or termios module")
if not hasattr(termios,'TIOCGPGRP'):
- raise TestSkipped("termios module doesn't have TIOCGPGRP")
+ raise SkipTest("termios module doesn't have TIOCGPGRP")
try:
tty = open("/dev/tty", "r")
tty.close()
except IOError:
- raise TestSkipped("Unable to open /dev/tty")
+ raise SkipTest("Unable to open /dev/tty")
try:
import pty
@@ -41,7 +41,7 @@ class IoctlTests(unittest.TestCase):
def test_ioctl_signed_unsigned_code_param(self):
if not pty:
- raise TestSkipped('pty module required')
+ raise SkipTest('pty module required')
mfd, sfd = pty.openpty()
try:
if termios.TIOCSWINSZ < 0: