Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c4929325
Commit
c4929325
authored
Aug 26, 2007
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics in error messages.
parent
f3f22e37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_unicode_file.py
Lib/test/test_unicode_file.py
+3
-3
No files found.
Lib/test/test_unicode_file.py
View file @
c4929325
...
...
@@ -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 suit
eable filename.
"
)
raise
TestSkipped
(
"Cannot find a suit
able 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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment