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
b079c07f
Commit
b079c07f
authored
Dec 24, 2016
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#25591: improve imap tests.
Patch by Maciej Szulik.
parent
e9ae5f9b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
331 additions
and
1 deletion
+331
-1
Lib/imaplib.py
Lib/imaplib.py
+1
-1
Lib/test/test_imaplib.py
Lib/test/test_imaplib.py
+330
-0
No files found.
Lib/imaplib.py
View file @
b079c07f
...
@@ -411,7 +411,7 @@ class IMAP4:
...
@@ -411,7 +411,7 @@ class IMAP4:
self
.
literal
=
_Authenticator
(
authobject
).
process
self
.
literal
=
_Authenticator
(
authobject
).
process
typ
,
dat
=
self
.
_simple_command
(
'AUTHENTICATE'
,
mech
)
typ
,
dat
=
self
.
_simple_command
(
'AUTHENTICATE'
,
mech
)
if
typ
!=
'OK'
:
if
typ
!=
'OK'
:
raise
self
.
error
(
dat
[
-
1
])
raise
self
.
error
(
dat
[
-
1
]
.
decode
(
'utf-8'
,
'replace'
)
)
self
.
state
=
'AUTH'
self
.
state
=
'AUTH'
return
typ
,
dat
return
typ
,
dat
...
...
Lib/test/test_imaplib.py
View file @
b079c07f
This diff is collapsed.
Click to expand it.
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