summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_imaplib.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31346: Use PROTOCOL_TLS_CLIENT/SERVER (#3058)Christian Heimes2017-09-151-10/+8
| | | | | | Replaces PROTOCOL_TLSv* and PROTOCOL_SSLv23 with PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31234: Add support.join_thread() helper (#3587)Victor Stinner2017-09-141-1/+3
| | | | join_thread() joins a thread but raises an AssertionError if the thread is still alive after timeout seconds.
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-4/+1
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-30231: Remove skipped test_imaplib tests (#1419)Victor Stinner2017-06-141-20/+10
| | | | | | | | The public cyrus.andrew.cmu.edu IMAP server (port 993) doesn't accept TLS connection using our self-signed x509 certificate. Remove the two tests which are already skipped. Write a new test_certfile_arg_warn() unit test for the certfile deprecation warning.
* bpo-30175: Skip client cert tests of test_imaplib (#1320)Victor Stinner2017-04-271-0/+6
| | | | | | | | | | | | | * bpo-30175: Skip client cert tests of test_imaplib The IMAP server cyrus.andrew.cmu.edu doesn't accept our randomly generated client x509 certificate anymore. * bpo-30188: Catch EOFError in NetworkedNNTPTests test_nntplib fails randomly with EOFError in NetworkedNNTPTests.setUpClass(). Catch EOFError to skip tests in that case.
* bpo-29919: Remove unused imports found by pyflakes (#137)Victor Stinner2017-03-271-1/+0
| | | Make also minor PEP8 coding style fixes on modified imports.
* Merge 3.5Victor Stinner2017-01-121-1/+1
|\
| * Issue #25591: Fix test_imaplib if ssl missVictor Stinner2017-01-121-1/+1
| |
* | Merge: #25591: improve imap tests.R David Murray2016-12-251-0/+330
|\ \ | |/
| * #25591: improve imap tests.R David Murray2016-12-251-0/+330
| | | | | | | | Patch by Maciej Szulik.
* | Issue #28022: Catch another deprecation warning in imaplibChristian Heimes2016-09-111-2/+4
| |
* | Issue #28022: Deprecate ssl-related arguments in favor of SSLContext.Christian Heimes2016-09-101-3/+3
| | | | | | | | | | | | | | The deprecation include manual creation of SSLSocket and certfile/keyfile (or similar) in ftplib, httplib, imaplib, smtplib, poplib and urllib. ssl.wrap_socket() is not marked as deprecated yet.
* | #21815: violate IMAP RFC to be compatible with, e.g., gmailR David Murray2016-01-021-0/+49
|/ | | | | | | | | | | and others, including imaplib's own behavior. I'm applying this only to 3.6 because there's a potential backward compatibility concern: if there are servers that include ] characters in the 'text' portion of their imap responses, this code change could introduce a new bug. Patch by Lita Cho, reviewed by Jessica McKellar, Berker Peksag, Maciej Szulik, silentghost, and me (I fleshed out the comments with the additional info/concerns.)
* Issue #20220: Merge time zone workaround from 3.4 into 3.5Martin Panter2015-11-161-1/+3
|\
| * Issue #20220: Add DST rules to work around glibc quirkMartin Panter2015-11-161-1/+3
| | | | | | | | This was triggering intermittent failures in unrelated tests.
* | Issue #23779: imaplib raises TypeError if authenticator tries to abort.Robert Collins2015-07-301-0/+20
|\ \ | |/ | | | | Patch from Craig Holmquist.
| * Issue #23779: imaplib raises TypeError if authenticator tries to abort.Robert Collins2015-07-301-0/+19
| | | | | | | | Patch from Craig Holmquist.
* | #21800: Add RFC 6855 support to imaplib.R David Murray2015-05-101-0/+78
| | | | | | | | | | Original patch by Milan Oberkirch, updated by myself and Maciej Szulik.
* | merge 3.4 (#22921)Benjamin Peterson2014-11-231-4/+0
|\ \ | |/
| * don't require OpenSSL SNI to pass hostname to ssl functions (#22921)Benjamin Peterson2014-11-231-4/+0
| | | | | | | | Patch by Donald Stufft.
* | imaplib.IMAP4 now supports the context manager protocol.Serhiy Storchaka2014-09-091-0/+35
| | | | | | | | Original patch by Tarek Ziadé.
* | Issue #22111: Assorted cleanups in test_imaplib. Patch by Milan Oberkirch.Antoine Pitrou2014-07-311-65/+51
|/
* Issue #18492: Allow all resources when tests are not run by regrtest.py.Zachary Ware2014-06-021-1/+0
| | | | This changeset also includes cleanup allowed by this behavior change.
* test_imaplib: skip check_hostname test when SNI is not availableChristian Heimes2013-12-151-0/+4
|
* Issue #19857: Make sure that test_imaplib reaps server threads even in face ofCharles-François Natali2013-12-071-7/+6
| | | | error upon client disconnection.
* Issue #19782: imaplib now supports SSLContext.check_hostname and server nameChristian Heimes2013-12-021-2/+26
| | | | indication for TLS/SSL connections.
* merge with 3.3Georg Brandl2013-10-271-0/+11
|\
| * Issue #16039: CVE-2013-1752: Change use of readline in imaplib module to limitGeorg Brandl2013-10-271-0/+11
| | | | | | | | line length. Patch by Emil Lind.
* | #17333: merge with 3.3.Ezio Melotti2013-03-021-3/+3
|\ \ | |/
| * #17333: test_imaplib now works with unittest test discovery. Patch by ↵Ezio Melotti2013-03-021-3/+3
| | | | | | | | Zachary Ware.
* | Merge: #13700: Make imap.authenticate with authobject work.R David Murray2013-02-191-9/+118
|\ \ | |/ | | | | | | | | | | This fixes a bytes/string confusion in the API which prevented custom authobjects from working at all. Original patch by Erno Tukia.
| * Merge: #13700: Make imap.authenticate with authobject work.R David Murray2013-02-191-9/+118
| |\ | | | | | | | | | | | | | | | | | | This fixes a bytes/string confusion in the API which prevented custom authobjects from working at all. Original patch by Erno Tukia.
| | * #13700: Make imap.authenticate with authobject work.R David Murray2013-02-191-9/+118
| | | | | | | | | | | | | | | | | | | | | This fixes a bytes/string confusion in the API which prevented custom authobjects from working at all. Original patch by Erno Tukia.
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-1/+1
|/ /
* | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
|\ \ | |/ | | | | Patch by Serhiy Storchaka.
| * Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
| | | | | | | | Patch by Serhiy Storchaka.
* | fixed whitespaceAlexander Belopolsky2012-06-231-1/+1
| |
* | Issues #11024: Fixes and additional tests for Time2Internaldate.Alexander Belopolsky2012-06-231-9/+25
| |
* | Merge from 3.2 (Issue #15095: Use better assertions in test_imaplib)Nick Coghlan2012-06-171-5/+5
|\ \ | |/
| * Issue #15095: Use better assertions in test_imaplibNick Coghlan2012-06-171-5/+5
| |
* | Issue #10941: Fix imaplib.Internaldate2tuple to produce correct result nearAlexander Belopolsky2012-04-291-1/+8
|\ \ | |/ | | | | the DST transition. Patch by Joe Peterson.
| * Issue #10941: Fix imaplib.Internaldate2tuple to produce correct result nearAlexander Belopolsky2012-04-291-1/+8
| | | | | | | | the DST transition. Patch by Joe Peterson.
* | Issue #8808: The IMAP4_SSL constructor now allows passing an SSLContextAntoine Pitrou2011-05-061-4/+51
|/ | | | | parameter to control parameters of the secure channel. Patch by Sijin Joseph.
* Use transient_internet() consistently in test_imaplibAntoine Pitrou2011-03-231-12/+16
|
* Issue #10939: Make Internaldate2tuple test more robust.Alexander Belopolsky2011-01-291-6/+8
|
* Issue #10939: Fixed imaplib.Internaldate2tuple(). Thanks Joe PetersonAlexander Belopolsky2011-01-291-0/+11
| | | | for the report and the patch. Reviewed by Georg Brandl.
* test_imaplib: reap_server() closes the server when doneVictor Stinner2011-01-051-0/+1
| | | | Fix a ResourceWarning(unclosed socket). Patch written by Nadeem Vawda.
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-1/+1
|
* Issue #10429: IMAP.starttls() stored the capabilities as bytes objects,Antoine Pitrou2010-11-161-0/+6
| | | | rather than strings.
* Avoid some BytesWarnings when running test_imaplib in verbose modeAntoine Pitrou2010-11-161-2/+2
|