Commit Graph

28 Commits

Author SHA1 Message Date
Andrew Svetlov 0832af6628 Issue #16717: get rid of socket.error, replace with OSError 2012-12-18 23:10:48 +02:00
Antoine Pitrou 1f5d2a087c Fix test to really run behind a NNTP virus checker 2012-06-24 16:28:18 +02:00
Nick Coghlan 307ef8aee5 Merge from 3.2 (Ignore X-Antivirus headers in test_nntplib) 2012-06-17 21:30:35 +10:00
Nick Coghlan 14d99a1491 Ignore X-Antivirus headers in test_nntplib 2012-06-17 21:27:18 +10:00
Antoine Pitrou 482ee66cb7 Issue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().
Patch by Hynek Schlawack.
2012-02-15 18:53:49 +01:00
Antoine Pitrou 2640b52237 Issue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().
Patch by Hynek Schlawack.
2012-02-15 18:53:18 +01:00
Antoine Pitrou 06b57ef958 Issue #10287: nntplib now queries the server's CAPABILITIES first before sending MODE READER, and only sends it if not already in READER mode.
Patch by Hynek Schlawack.
2012-02-14 23:30:35 +01:00
Antoine Pitrou 71135624d8 Issue #10287: nntplib now queries the server's CAPABILITIES first before sending MODE READER, and only sends it if not already in READER mode.
Patch by Hynek Schlawack.
2012-02-14 23:29:34 +01:00
Antoine Pitrou 425b8e85a9 Issue #10287: nntplib now queries the server's CAPABILITIES again after authenticating (since the result may change, according to RFC 4643).
Patch by Hynek Schlawack.
2012-02-12 19:15:09 +01:00
Antoine Pitrou 54411c1784 Issue #10287: nntplib now queries the server's CAPABILITIES again after authenticating (since the result may change, according to RFC 4643).
Patch by Hynek Schlawack.
2012-02-12 19:14:17 +01:00
Florent Xicluna aabbda5354 Merge 3.2 2011-10-28 14:52:29 +02:00
Florent Xicluna 5d1155c08e Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
Ezio Melotti d8b509b192 #13012: use splitlines(keepends=True/False) instead of splitlines(0/1). 2011-09-28 17:37:55 +03:00
Giampaolo Rodolà 424298a155 Issue 9795: adds context manager protocol to nntplib.NNTP class so that it can used with the 'with' statement. 2011-03-03 18:34:06 +00:00
Marc-André Lemburg 8f36af7a4c Normalize the encoding names for Latin-1 and UTF-8 to
'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.
2011-02-25 15:42:01 +00:00
Raymond Hettinger 57d1a887e7 Fix imports from collections.abc 2011-02-23 00:46:28 +00:00
Antoine Pitrou 3bce11cbbd Make test_nntplib more robust 2010-11-21 17:14:19 +00:00
Antoine Pitrou de609186fc Wrap all test_nntplib methods accessing a remote server in a transient_internet()
exception catcher.  Wrapping the initial connection routine is not sufficient
as network timeouts can then occur as part of NNTP commands.
2010-11-18 17:29:23 +00:00
Antoine Pitrou d28f790b69 Make test_nntplib more robust when the "last" article in a group can't be retrieved 2010-11-18 15:11:43 +00:00
Antoine Pitrou 45ca987495 Switch from gmane to another provider for NNTP tests (as gmane isn't reliable
enough).  Also, use setUpClass in order to connect only once per test run.
2010-11-13 00:28:53 +00:00
Antoine Pitrou 1cb121ecea Issue #1926: Add support for NNTP over SSL on port 563, as well as
STARTTLS.  Patch by Andrew Vant.
2010-11-09 18:54:37 +00:00
Antoine Pitrou a078115434 Issue #10282: Add a `nntp_implementation` attribute to NNTP objects. 2010-11-05 19:16:37 +00:00
Antoine Pitrou 08eeadac27 Issue #10283: Add a `group_pattern` argument to NNTP.list(). 2010-11-04 21:36:15 +00:00
Antoine Pitrou 4103bc09a4 Issue #10281: nntplib now returns None for absent fields in the OVER/XOVER
response, instead of raising an exception.
2010-11-03 18:18:43 +00:00
Antoine Pitrou f80b3f72c6 Issue #10280: NNTP.nntp_version should reflect the highest version
advertised by the server.
2010-11-02 22:31:52 +00:00
Antoine Pitrou a5785b1524 Fix NNTP when there's a ".netrc" file 2010-09-29 16:19:50 +00:00
Antoine Pitrou 2620d81b7f Disable the usenetrc option when testing nntplib 2010-09-29 16:08:29 +00:00
Antoine Pitrou 69ab95105f Issue #9360: Cleanup and improvements to the nntplib module. The API
now conforms to the philosophy of bytes and unicode separation in Python 3.
A test suite has also been added.
2010-09-29 15:03:40 +00:00