Commit graph

43198 commits

Author SHA1 Message Date
Vinay Sajip
bb2dad8915 Issue #17521: Corrected non-enabling of logger following two calls to fileConfig(). 2013-03-23 11:18:10 +00:00
Vinay Sajip
5a63fe6813 Closes #17508: Merged fix from 3.3. 2013-03-22 15:27:52 +00:00
Vinay Sajip
340a4bb2fe Issue #17508: Merged fix from 3.2. 2013-03-22 15:23:13 +00:00
Vinay Sajip
3f885b5432 Issue #17508: Handled out-of-order handler configuration correctly. 2013-03-22 15:19:54 +00:00
Vinay Sajip
8651a51c92 Issue #17508: Handled out-of-order handler configuration correctly. 2013-03-22 15:19:24 +00:00
Benjamin Peterson
469ee9d84c backout 66e30c4870bb for breaking OSX (#13150) 2013-03-22 09:37:13 -05:00
Benjamin Peterson
440282ba8a copy 2.7 magic numbers for historical interest 2013-03-21 23:04:45 -05:00
R David Murray
f516388de8 #17472: add tests for a couple of untested methods in urllib.urlparse.
Original patch by Daniel Wozniak.
2013-03-21 20:56:51 -04:00
Victor Stinner
d502a07fac test_ast: pass the filename to ast.parse() 2013-03-22 00:06:20 +01:00
doko@ubuntu.com
28b7c05131 - Issue #13150: sysconfig no longer parses the Makefile and config.h files
when imported, instead doing it at build time.  This makes importing
  sysconfig faster and reduces Python startup time by 20%.
2013-03-21 15:02:16 -07:00
doko@ubuntu.com
6d3d0fe0b2 - Issue #16754: Fix the incorrect shared library extension on linux. Introduce
two makefile macros SHLIB_SUFFIX and EXT_SUFFIX. SO now has the value of
  SHLIB_SUFFIX again (as in 2.x and 3.1). The SO macro is removed in 3.4.
2013-03-21 13:39:52 -07:00
doko@ubuntu.com
1621d77fc8 - Issue #16754: Fix the incorrect shared library extension on linux. Introduce
two makefile macros SHLIB_SUFFIX and EXT_SUFFIX. SO now has the value of
  SHLIB_SUFFIX again (as in 2.x and 3.1). The SO macro is removed in 3.4.
2013-03-21 13:31:41 -07:00
doko@ubuntu.com
d5537d071c - Issue #16754: Fix the incorrect shared library extension on linux. Introduce
two makefile macros SHLIB_SUFFIX and EXT_SUFFIX. SO now has the value of
  SHLIB_SUFFIX again (as in 2.x and 3.1). The SO macro is removed in 3.4.
2013-03-21 13:21:49 -07:00
R David Murray
e0a1bf313f Merge: #5713: One more test_smtplib timing fix. 2013-03-21 00:33:30 -04:00
R David Murray
6bd5202227 #5713: One more test_smtplib timing fix. 2013-03-21 00:32:31 -04:00
Raymond Hettinger
3030728138 Fix import 2013-03-20 19:28:19 -07:00
R David Murray
dac94d619c Merge: #5712: Preemptively fix some other possible timing issues. 2013-03-20 22:12:53 -04:00
R David Murray
54bd49d49b Merge: #5712: Preemptively fix some other possible timing issues. 2013-03-20 22:12:14 -04:00
R David Murray
03b0116c78 #5712: Preemptively fix some other possible timing issues. 2013-03-20 22:11:40 -04:00
R David Murray
ba7d9d46f2 Merge: #5713: fix timing issue in smtplib tests. 2013-03-20 21:56:03 -04:00
R David Murray
a686ed7d10 Merge: #5713: fix timing issue in smtplib tests. 2013-03-20 21:55:14 -04:00
R David Murray
853c0f9d60 #5713: fix timing issue in smtplib tests. 2013-03-20 21:54:05 -04:00
Gregory P. Smith
e25df59427 merge 2013-03-20 18:32:45 -07:00
Gregory P. Smith
74b24047e3 merge 2013-03-20 18:32:22 -07:00
Gregory P. Smith
1f8a40b81d remove the long obsolete mention of universal newlines mode only being
available when configured at compile time.
2013-03-20 18:32:03 -07:00
R David Murray
82c6b45c14 Merge: #5713: Handle 421 error codes during sendmail by closing the socket.
This is a partial fix to the issue of servers disconnecting unexpectedly; in
this case the 421 says they are disconnecting, so we close the socket and
return the 421 in the appropriate error context.

Original patch by Mark Sapiro, updated by Kushal Das, with additional
tests by me.
2013-03-20 21:13:56 -04:00
R David Murray
f1a40b4ec5 Merge: #5713: Handle 421 error codes during sendmail by closing the socket.
This is a partial fix to the issue of servers disconnecting unexpectedly; in
this case the 421 says they are disconnecting, so we close the socket and
return the 421 in the appropriate error context.

Original patch by Mark Sapiro, updated by Kushal Das, with additional
tests by me.
2013-03-20 21:12:17 -04:00
R David Murray
d312c740f1 #5713: Handle 421 error codes during sendmail by closing the socket.
This is a partial fix to the issue of servers disconnecting unexpectedly; in
this case the 421 says they are disconnecting, so we close the socket and
return the 421 in the appropriate error context.

Original patch by Mark Sapiro, updated by Kushal Das, with additional
tests by me.
2013-03-20 20:36:14 -04:00
Kristján Valur Jónsson
6168362509 Issue #16475 : Correctly handle the EOF when reading marshal streams. 2013-03-20 14:26:33 -07:00
Antoine Pitrou
c9b3ef2df0 Issue #16997: unittest.TestCase now provides a subTest() context manager to procedurally generate, in an easy way, small test instances. 2013-03-20 20:16:47 +01:00
Benjamin Peterson
17feac7c6e fix issue reference 2013-03-20 13:11:04 -05:00
Benjamin Peterson
b2c57a9142 this obviously is not going to raise any -3 warnings 2013-03-20 13:10:41 -05:00
Benjamin Peterson
625af8e13e site.py is needed to set up paths 2013-03-20 12:47:57 -05:00
Ezio Melotti
a612176c9c #17493: merge with 3.3. 2013-03-20 18:16:05 +02:00
Ezio Melotti
a49178e48e #17493: merge with 3.2. 2013-03-20 18:15:37 +02:00
Ezio Melotti
958f7ae865 #17493: re-enable a test on Windows. Patch by Zachary Ware. 2013-03-20 18:14:48 +02:00
Gregory P. Smith
016b9e38f7 Use a larger amount of data for tests such as the interrupted_write
tests that depend on filling up an OS pipe so that they work properly
on systems configured with large pipe buffers.

Also a subprocess docstring update that i forgot was in my client when
i did the original 3.3 commit... easier to just leave that in here
with this one than go back and undo/redo.
2013-03-19 23:27:09 -07:00
Gregory P. Smith
91110f5e55 Use a larger amount of data for tests such as the interrupted_write
tests that depend on filling up an OS pipe so that they work properly
on systems configured with large pipe buffers.
2013-03-19 23:25:16 -07:00
Gregory P. Smith
5c87ad07bd Use a larger amount of data for the interrupted_write tests so that
they work properly on systems configured with large pipe buffers.
2013-03-19 23:21:03 -07:00
R David Murray
9cc7d45571 #17485: Delete the Content-Length header if the data attribute is deleted.
This is a follow on to issue 16464.  Original patch by Daniel Wozniak.
2013-03-20 00:10:51 -04:00
Kristján Valur Jónsson
d7009c6913 Issue #16475: Support object instancing, recursion and interned strings
in marshal
2013-03-19 18:02:10 -07:00
R David Murray
c7c42efb16 #15927: Fix cvs.reader parsing of escaped \r\n with quoting off.
This fix means that such values are correctly roundtripped, since
cvs.writer already does the correct escaping.

Patch by Michael Johnson.
2013-03-19 22:41:47 -04:00
Michael Foord
04cbe0c35b Closes issue 17467. Add readline and readlines support to unittest.mock.mock_open 2013-03-19 17:22:51 -07:00
Kristján Valur Jónsson
9795ca44fb Issue #10212: Support new buffer interface for struct.unpack and
cStringIO
2013-03-19 17:17:47 -07:00
Senthil Kumaran
94f2788a85 #17471: merge from 3.3 2013-03-19 16:52:06 -07:00
Kristján Valur Jónsson
1d108bc714 Issue #10211 : Buffer object should support the new buffer interface. 2013-03-19 16:50:51 -07:00
Kristján Valur Jónsson
acb6e85808 Issue #12098 : Fix a missing import in the unittests. 2013-03-19 17:30:30 -07:00
Senthil Kumaran
f47e77f343 #17471 - merge from 3.2 2013-03-19 16:46:34 -07:00
Terry Jan Reedy
f027a204b0 Issue #13248: removed deprecated and undocumented difflib.isbjunk, isbpopular. 2013-03-19 19:44:04 -04:00
Senthil Kumaran
2a4d24510a #17471 - Increasing the urllib.error test coverage. Bringing it to 100%. Based on patch contributed by Daniel Wozniak 2013-03-19 16:11:07 -07:00