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_unicode_file.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_unicode_file.py')
-rw-r--r-- | Lib/test/test_unicode_file.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_unicode_file.py b/Lib/test/test_unicode_file.py index d9a810d..5c1f45b 100644 --- a/Lib/test/test_unicode_file.py +++ b/Lib/test/test_unicode_file.py @@ -5,14 +5,14 @@ import os, glob, time, shutil import unicodedata import unittest -from test.test_support import run_unittest, SkipTest, TESTFN_UNICODE +from test.test_support import run_unittest, TESTFN_UNICODE from test.test_support import TESTFN_ENCODING, TESTFN_UNICODE_UNENCODEABLE try: TESTFN_ENCODED = TESTFN_UNICODE.encode(TESTFN_ENCODING) except (UnicodeError, TypeError): # Either the file system encoding is None, or the file name # cannot be encoded in the file system encoding. - raise SkipTest("No Unicode filesystem semantics on this platform.") + raise unittest.SkipTest("No Unicode filesystem semantics on this platform.") if TESTFN_ENCODED.decode(TESTFN_ENCODING) != TESTFN_UNICODE: # The file system encoding does not support Latin-1 @@ -26,10 +26,10 @@ if TESTFN_ENCODED.decode(TESTFN_ENCODING) != TESTFN_UNICODE: # MBCS will not report the error properly raise UnicodeError, "mbcs encoding problem" except (UnicodeError, TypeError): - raise SkipTest("Cannot find a suiteable filename.") + raise unittest.SkipTest("Cannot find a suiteable filename.") if TESTFN_ENCODED.decode(TESTFN_ENCODING) != TESTFN_UNICODE: - raise SkipTest("Cannot find a suitable filename.") + raise unittest.SkipTest("Cannot find a suitable filename.") def remove_if_exists(filename): if os.path.exists(filename): |