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
ea8f6fa0
Commit
ea8f6fa0
authored
Mar 12, 2003
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_whitespace_eater_unicode(): Make this test Python 2.1 compatible.
parent
ca53c12c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Lib/email/test/test_email.py
Lib/email/test/test_email.py
+4
-1
No files found.
Lib/email/test/test_email.py
View file @
ea8f6fa0
...
...
@@ -1288,7 +1288,10 @@ class TestRFC2047(unittest.TestCase):
s
=
'=?ISO-8859-1?Q?Andr=E9?= Pirard <pirard@dom.ain>'
dh
=
decode_header
(
s
)
eq
(
dh
,
[(
'Andr
\
xe9
'
,
'iso-8859-1'
),
(
'Pirard <pirard@dom.ain>'
,
None
)])
hu
=
unicode
(
make_header
(
dh
)).
encode
(
'latin-1'
)
# Python 2.1's unicode() builtin doesn't call the object's
# __unicode__() method. Use the following alternative instead.
#hu = unicode(make_header(dh)).encode('latin-1')
hu
=
make_header
(
dh
).
__unicode__
().
encode
(
'latin-1'
)
eq
(
hu
,
'Andr
\
xe9
Pirard <pirard@dom.ain>'
)
...
...
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