diff options
author | Guido van Rossum <guido@python.org> | 2007-08-26 23:30:31 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-26 23:30:31 (GMT) |
commit | 19b4a272eae85ab597e38ba45b6f8540134e9e7d (patch) | |
tree | 2f704d85474dab1ac5b5b485b40d556bed01b455 /Lib | |
parent | fe82e165e41d099b0c3ef543a15b1077b4026bab (diff) | |
download | cpython-19b4a272eae85ab597e38ba45b6f8540134e9e7d.zip cpython-19b4a272eae85ab597e38ba45b6f8540134e9e7d.tar.gz cpython-19b4a272eae85ab597e38ba45b6f8540134e9e7d.tar.bz2 |
Cosmetics in error messages.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_unicode_file.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_unicode_file.py b/Lib/test/test_unicode_file.py index 69d99aa..9437fce 100644 --- a/Lib/test/test_unicode_file.py +++ b/Lib/test/test_unicode_file.py @@ -13,7 +13,7 @@ try: except (UnicodeError, TypeError): # Either the file system encoding is None, or the file name # cannot be encoded in the file system encoding. - raise TestSkipped("No Unicode filesystem semantics on this platform.") + raise TestSkipped("No Unicode filesystem semantics on this platform") if TESTFN_ENCODED.decode(TESTFN_ENCODING) != TESTFN_UNICODE: # The file system encoding does not support Latin-1 @@ -27,10 +27,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 TestSkipped("Cannot find a suiteable filename.") + raise TestSkipped("Cannot find a suitable filename") if TESTFN_ENCODED.decode(TESTFN_ENCODING) != TESTFN_UNICODE: - raise TestSkipped("Cannot find a suitable filename.") + raise TestSkipped("Cannot find a suitable filename") def remove_if_exists(filename): if os.path.exists(filename): |