summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_nntplib.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-39259: nntplib.NNTP/NNTP_SSL now reject timeout = 0 (GH-17936)Dong-hee Na2020-01-111-0/+4
| | | | | nntplib.NNTP and nntplib.NNTP_SSL now raise a ValueError if the given timeout for their constructor is zero to prevent the creation of a non-blocking socket.
* bpo-39242: Updated the Gmane domain into news.gmane.io (GH-17903)Dong-hee Na2020-01-081-2/+2
|
* bpo-38614: Use test.support.INTERNET_TIMEOUT constant (GH-17565)Victor Stinner2019-12-101-4/+10
| | | | | Replace hardcoded timeout constants in tests with INTERNET_TIMEOUT of test.support, so it's easier to ajdust this timeout for all tests at once.
* bpo-35925: Skip SSL tests that fail due to weak external certs. (GH-13124)Gregory P. Smith2019-05-061-8/+29
| | | | | | | | Modern Linux distros such as Debian Buster have default OpenSSL system configurations that reject connections to servers with weak certificates by default. This causes our test suite run with external networking resources enabled to skip these tests when they encounter such a failure. Fixing the network servers is a separate issue.
* bpo-32128: Skip test_nntplib.test_article_head_body() (#4552)Victor Stinner2017-11-251-0/+1
| | | | | The NNTP server currently has troubles with SSL, whereas we don't have the control on this server. This test blocks all CIs, so disable it until a fix can be found.
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-5/+4
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-30188: fix TypeError in test_nntplib (GH-2892)INADA Naoki2017-07-261-2/+2
| | | fixes regression of 5b4feb7
* bpo-30188: test_nntplib catch also ssl.SSLEOFError (#2843)Victor Stinner2017-07-241-1/+6
| | | | Catch also ssl.SSLEOFError in NetworkedNNTPTests setUpClass(). EOFError was already catched.
* bpo-30175: Skip client cert tests of test_imaplib (#1320)Victor Stinner2017-04-271-1/+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.
* Issue #28971: Merge 3.5Xavier de Gaye2016-12-161-0/+2
|\
| * Issue #28971: Temporarily skip test_over until a permanent solution is foundXavier de Gaye2016-12-161-0/+2
| | | | | | | | for issue #28971.
* | Issue #28022: Deprecate ssl-related arguments in favor of SSLContext.Christian Heimes2016-09-101-2/+4
|/ | | | | | | 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.
* Issue #27626: Spelling fixes in docs, comments and internal namesMartin Panter2016-07-281-2/+2
| | | | Based on patch by Ville Skyttä.
* Correct “an” → “a” with “Unicode”, “user”, “UTF”, etcMartin Panter2016-04-151-1/+1
| | | | This affects documentation, code comments, and a debugging messages.
* Issue #25859: Reimplement NNTP test_starttls() using local serverMartin Panter2016-01-191-18/+64
| | | | | | | The previous test relied on a remote server, which currently seems to be shutting the connection down once TLS has been set up, causing an EOFError. Now the test is implemented using a minimal NNTP server running in a background thread.
* Issue #22351. MockSslTests tests in test_nntplib now are reported if skipped.Serhiy Storchaka2015-04-031-9/+10
|
* Issue #22351: Fix test_nntplib if the ssl module is missingVictor Stinner2015-04-031-9/+10
| | | | | @unittest.skipUnless(ssl, '...') doesn't work because the class body uses the nntplib.NNTP_SSL attribute which doesn't exist.
* Issue #22351: The nntplib.NNTP constructor no longer leaves the connectionSerhiy Storchaka2015-03-211-4/+98
| | | | | and socket open until the garbage collector cleans them up. Patch by Martin Panter.
* Issue #22247: Add NNTPError to nntplib.__all__.Berker Peksag2014-09-201-5/+12
|
* Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-36/+38
|
* merge with 3.3Georg Brandl2013-10-271-0/+10
|\
| * Issue #16040: CVE-2013-1752: nntplib: Limit maximum line lengths to 2048 toGeorg Brandl2013-10-271-0/+10
| | | | | | | | | | prevent readline() calls from consuming too much memory. Patch by Jyrki Pulliainen.
* | Issue #16717: get rid of socket.error, replace with OSErrorAndrew Svetlov2012-12-181-1/+1
|/
* Fix test to really run behind a NNTP virus checkerAntoine Pitrou2012-06-241-2/+5
|
* Merge from 3.2 (Ignore X-Antivirus headers in test_nntplib)Nick Coghlan2012-06-171-1/+4
|\
| * Ignore X-Antivirus headers in test_nntplibNick Coghlan2012-06-171-1/+4
| |
* | Issue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().Antoine Pitrou2012-02-151-0/+40
|\ \ | |/ | | | | Patch by Hynek Schlawack.
| * Issue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().Antoine Pitrou2012-02-151-0/+40
| | | | | | | | Patch by Hynek Schlawack.
* | Issue #10287: nntplib now queries the server's CAPABILITIES first before ↵Antoine Pitrou2012-02-141-1/+50
|\ \ | |/ | | | | | | | | sending MODE READER, and only sends it if not already in READER mode. Patch by Hynek Schlawack.
| * Issue #10287: nntplib now queries the server's CAPABILITIES first before ↵Antoine Pitrou2012-02-141-1/+50
| | | | | | | | | | | | sending MODE READER, and only sends it if not already in READER mode. Patch by Hynek Schlawack.
* | Issue #10287: nntplib now queries the server's CAPABILITIES again after ↵Antoine Pitrou2012-02-121-5/+57
|\ \ | |/ | | | | | | | | authenticating (since the result may change, according to RFC 4643). Patch by Hynek Schlawack.
| * Issue #10287: nntplib now queries the server's CAPABILITIES again after ↵Antoine Pitrou2012-02-121-5/+57
| | | | | | | | | | | | authenticating (since the result may change, according to RFC 4643). Patch by Hynek Schlawack.
* | Merge 3.2Florent Xicluna2011-10-281-2/+1
|\ \ | |/
| * Closes #13258: Use callable() built-in in the standard library.Florent Xicluna2011-10-281-2/+1
| |
* | #13012: use splitlines(keepends=True/False) instead of splitlines(0/1).Ezio Melotti2011-09-281-2/+2
| |
* | Issue 9795: adds context manager protocol to nntplib.NNTP class so that it ↵Giampaolo Rodolà2011-03-031-0/+21
| | | | | | | | can used with the 'with' statement.
* | Normalize the encoding names for Latin-1 and UTF-8 toMarc-André Lemburg2011-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | 'latin-1' and 'utf-8'. These are optimized in the Python Unicode implementation to result in more direct processing, bypassing the codec registry. Also see issue11303.
* | Fix imports from collections.abcRaymond Hettinger2011-02-231-2/+2
|/
* Make test_nntplib more robustAntoine Pitrou2010-11-211-2/+4
|
* Wrap all test_nntplib methods accessing a remote server in a ↵Antoine Pitrou2010-11-181-13/+29
| | | | | | | transient_internet() exception catcher. Wrapping the initial connection routine is not sufficient as network timeouts can then occur as part of NNTP commands.
* Make test_nntplib more robust when the "last" article in a group can't be ↵Antoine Pitrou2010-11-181-9/+26
| | | | retrieved
* Switch from gmane to another provider for NNTP tests (as gmane isn't reliableAntoine Pitrou2010-11-131-32/+45
| | | | enough). Also, use setUpClass in order to connect only once per test run.
* Issue #1926: Add support for NNTP over SSL on port 563, as well asAntoine Pitrou2010-11-091-24/+76
| | | | STARTTLS. Patch by Andrew Vant.
* Issue #10282: Add a `nntp_implementation` attribute to NNTP objects.Antoine Pitrou2010-11-051-0/+2
|
* Issue #10283: Add a `group_pattern` argument to NNTP.list().Antoine Pitrou2010-11-041-6/+29
|
* Issue #10281: nntplib now returns None for absent fields in the OVER/XOVERAntoine Pitrou2010-11-031-1/+26
| | | | response, instead of raising an exception.
* Issue #10280: NNTP.nntp_version should reflect the highest versionAntoine Pitrou2010-11-021-3/+3
| | | | advertised by the server.
* Fix NNTP when there's a ".netrc" fileAntoine Pitrou2010-09-291-1/+2
|
* Disable the usenetrc option when testing nntplibAntoine Pitrou2010-09-291-1/+2
|
* Issue #9360: Cleanup and improvements to the nntplib module. The APIAntoine Pitrou2010-09-291-0/+1091
now conforms to the philosophy of bytes and unicode separation in Python 3. A test suite has also been added.