diff options
| author | Benjamin Peterson <benjamin@python.org> | 2009-03-26 21:10:30 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2009-03-26 21:10:30 (GMT) |
| commit | bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1 (patch) | |
| tree | b7e37c8e82279a3a58d768ec4a79fd51488521f7 /Lib/test/test_ioctl.py | |
| parent | ad57d97596bb9466e6fce0c3dfcf436fd5c36ff9 (diff) | |
| download | cpython-bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1.zip cpython-bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1.tar.gz cpython-bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1.tar.bz2 | |
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
Diffstat (limited to 'Lib/test/test_ioctl.py')
| -rw-r--r-- | Lib/test/test_ioctl.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_ioctl.py b/Lib/test/test_ioctl.py index cc79e1f..4da209d 100644 --- a/Lib/test/test_ioctl.py +++ b/Lib/test/test_ioctl.py @@ -1,18 +1,18 @@ import unittest -from test.test_support import SkipTest, run_unittest +from test.test_support import run_unittest import os, struct try: import fcntl, termios except ImportError: - raise SkipTest("No fcntl or termios module") + raise unittest.SkipTest("No fcntl or termios module") if not hasattr(termios,'TIOCGPGRP'): - raise SkipTest("termios module doesn't have TIOCGPGRP") + raise unittest.SkipTest("termios module doesn't have TIOCGPGRP") try: tty = open("/dev/tty", "r") tty.close() except IOError: - raise SkipTest("Unable to open /dev/tty") + raise unittest.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 SkipTest('pty module required') + raise unittest.SkipTest('pty module required') mfd, sfd = pty.openpty() try: if termios.TIOCSWINSZ < 0: |
