diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-03-26 20:48:25 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-03-26 20:48:25 (GMT) |
commit | 888a39b54c4f47ee25d53b157e2c50402627cd0b (patch) | |
tree | 67a48f107d83b8451e338f1ea822f2b4c65f6960 /Lib/test/test_posix.py | |
parent | 21f6aac633a78271e762d6cd4b709e6a91d0c42a (diff) | |
download | cpython-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_posix.py')
-rw-r--r-- | Lib/test/test_posix.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 5f40060..864f963 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -5,7 +5,7 @@ from test import test_support try: import posix except ImportError: - raise test_support.TestSkipped, "posix is not available" + raise unittest.SkipTest, "posix is not available" import time import os @@ -242,10 +242,10 @@ class PosixTester(unittest.TestCase): os.mkdir(base_path) os.chdir(base_path) except: -# Just returning nothing instead of the TestSkipped exception, +# Just returning nothing instead of the SkipTest exception, # because the test results in Error in that case. # Is that ok? -# raise test_support.TestSkipped, "cannot create directory for testing" +# raise unittest.SkipTest, "cannot create directory for testing" return try: @@ -253,7 +253,7 @@ class PosixTester(unittest.TestCase): try: os.mkdir(dirname) except: - raise test_support.TestSkipped, "mkdir cannot create directory sufficiently deep for getcwd test" + raise unittest.SkipTest, "mkdir cannot create directory sufficiently deep for getcwd test" os.chdir(dirname) try: |