Michael Foord
1ab27c6fde
Remove more Python 2 code from unittest.mock (obsolete function attributes)
2012-03-25 19:16:10 +01:00
Michael Foord
0dccf657b5
Minor changes to the unittest.mock.mock_open helper
2012-03-25 19:11:50 +01:00
Michael Foord
99254730b2
Addition of docstrings to unittest.mock helpers
2012-03-25 19:07:33 +01:00
Michael Foord
a74561a56d
unittest.mock: set file_spec on first use
2012-03-25 19:03:13 +01:00
Michael Foord
50a8c0ef5d
Support subclassing unittest.mock._patch and fix various obscure bugs around patcher spec arguments
2012-03-25 18:57:58 +01:00
Michael Foord
a3eabb6f8e
Merge
2012-03-25 18:16:26 +01:00
Michael Foord
313f85f0ca
unittest.mock.MagicMock objects are now unorderable by default
2012-03-25 18:16:07 +01:00
Stefan Krah
fe17b2bc77
Raise MemoryError instead of InvalidOperation/MallocError for compatibility
...
with decimal.py. The standard specifies InsufficientStorage (MallocError) as
a sub-condition of InvalidOperation. This allows a calculation to continue
with NaN results when allocation fails.
2012-03-25 18:59:21 +02:00
Andrew Svetlov
cd49d53238
Issue #14200 — now displayhook for IDLE works in non-subprocess mode as well as subprecess.
2012-03-25 11:43:02 +03:00
Charles-François Natali
9384c7ddab
Issue #13902 : Fix a random test_threading failure on FreeBSD 6 buildbots (due
...
to a known bug in pthread implementation on FreeBSD < 7).
2012-03-24 20:37:01 +01:00
Charles-François Natali
8e6fe648cc
Issue #13902 : Fix a random test_threading failure on FreeBSD 6 buildbots (due
...
to a known bug in pthread implementation on FreeBSD < 7).
2012-03-24 20:36:09 +01:00
Charles-François Natali
55bce63ea0
Issue #14154 : Reimplement the bigmem test memory watchdog as a subprocess.
2012-03-24 10:06:23 +01:00
Vinay Sajip
ee64b28cf4
Closes #14314 : backported fix.
2012-03-23 14:36:22 +00:00
Giampaolo Rodola'
c7ea19fee8
attempt to fix asyncore buildbot failure
2012-03-23 15:09:58 +01:00
Giampaolo Rodola'
a3481e70d1
attempt to fix asyncore buildbot failure
2012-03-23 15:07:07 +01:00
Stefan Krah
b6405efd1b
Use the same exception hierarchy as decimal.py. FloatOperation now also
...
inherits from TypeError. Cleanup in module initialization to make repeated
import failures robust.
2012-03-23 14:46:48 +01:00
Giampaolo Rodola'
4164ac1f27
merge
2012-03-23 13:29:49 +01:00
Giampaolo Rodola'
466a54f4dc
fix failing asyncore test as per http://bugs.python.org/issue10340#msg156586
2012-03-23 13:29:01 +01:00
Eli Bendersky
396e8fcf36
Issue #13782 : streamline argument type-checking in ET.Element
...
append, extend and insert now consistently type-check their argument in both
the C and Python implementations, and raise TypeError for non-Element
argument.
Added tests
2012-03-23 14:24:20 +02:00
R David Murray
42243c4dca
#14380 : Make actual default match docs, fix __init__ order.
...
Éric pointed out that given that the default was documented as None, someone
would reasonably pass that to get the default behavior. In fixing the code to
use None, I noticed that the change to _charset was being done after it had
already been passed to MIMENonMultipart. The change to the test verifies that
the order is now correct.
2012-03-22 22:40:44 -04:00
R David Murray
8680bcc5db
#14380 : Have MIMEText defaults to utf-8 when passed non-ASCII unicode
...
Previously it would just accept the unicode, which would wind up as unicode in
the transfer-encoded message object, which is just wrong.
Patch by Jeff Knupp.
2012-03-22 22:17:51 -04:00
Giampaolo Rodola'
3539ef3d21
merge 79422b3684f1 in 3.3 branch (issue 10340)
2012-03-22 16:19:45 +01:00
Giampaolo Rodola'
350c94b900
fix #10340 : properly handle EINVAL on OSX and also avoid to call handle_connect() in case of a disconnetected socket which is not meant to connect.
2012-03-22 16:17:43 +01:00
Benjamin Peterson
98ba753432
merge 3.2 ( #14378 )
2012-03-22 08:19:50 -04:00
Benjamin Peterson
a4e4e35783
check by equality for __future__ not identity ( closes #14378 )
2012-03-22 08:19:04 -04:00
Antoine Pitrou
d5d17eb653
Issue #14204 : The ssl module now has support for the Next Protocol Negotiation extension, if available in the underlying OpenSSL library.
...
Patch by Colin Marc.
2012-03-22 00:23:03 +01:00
Andrew Svetlov
a966c6fddb
Issue #3035 : Unused functions from tkinter are marked as pending peprecated.
2012-03-21 23:52:59 +02:00
R David Murray
1da08e77df
Merge #12757 : Make doctest skipping in -OO mode work with unittest/regrtest -v
2012-03-21 14:55:04 -04:00
R David Murray
e112153727
#12757 : Make doctest skipping in -OO mode work with unittest/regrtest -v
2012-03-21 14:53:42 -04:00
Benjamin Peterson
65e32d1f1a
merge heads
2012-03-21 14:26:09 -04:00
Stefan Krah
1919b7e72b
Issue #7652 : Integrate the decimal floating point libmpdec library to speed
...
up the decimal module. Performance gains of the new C implementation are
between 12x and 80x, depending on the application.
2012-03-21 18:25:23 +01:00
Andrew Svetlov
206d2a43a3
Merge from 3.2 for issue #3573 , fix Misc/NEWS as Ned Deily guess.
2012-03-21 13:31:12 +02:00
Andrew Svetlov
0f71f44156
#3573 : idle now doesn't hungs if launched as: idle -e <directory>
...
Patch by Guilherme Polo.
2012-03-21 13:23:41 +02:00
Benjamin Peterson
1b1a8e7cb5
correctly lookup __trunc__ in int() constructor
2012-03-20 23:48:11 -04:00
Andrew Svetlov
6b6e437626
#3573 : idle now doesn't hungs if launched as: idle -e <directory>
...
Patch by Guilherme Polo.
2012-03-20 23:03:26 +02:00
R David Murray
669b755c92
#14269 : smtpd now conforms to the RFC and requires HELO before MAIL.
...
This is a backward incompatible change, but since it is an RFC conformance bug
and all real mail servers that I know of do conform to the RFC in this regard,
I believe it is an acceptable change for a feature release.
Patch by Jason Killen.
2012-03-20 16:16:29 -04:00
Larry Hastings
83a9f48699
Issue #14328 : Add keyword-only parameters to PyArg_ParseTupleAndKeywords.
...
They're optional-only for now (unlike in pure Python) but that's all
I needed. The syntax can easily be relaxed if we want to support
required keyword-only arguments for extension types in the future.
2012-03-20 20:06:16 +00:00
Giampaolo Rodola'
7941736ddb
Fix issue #13694 : asynchronous connect in asyncore.dispatcher does not set addr.
2012-03-20 16:49:55 +01:00
Giampaolo Rodola'
2a886412ba
Fix issue #13694 : asynchronous connect in asyncore.dispatcher does not set addr.
2012-03-20 16:44:24 +01:00
Benjamin Peterson
4ca5661669
all OSErrors should indicate there are no extended attributes ( closes #14358 )
2012-03-18 22:26:05 -04:00
Georg Brandl
3187749646
Merge 3.2.3rc2 from release clone.
2012-03-18 20:37:43 +01:00
Georg Brandl
226af70a59
Bump to 3.2.3rc2.
2012-03-18 07:34:49 +01:00
Raymond Hettinger
7dabfede34
Fix whitespace
2012-03-17 15:11:09 -07:00
Raymond Hettinger
7e0c581c49
Low overhead path for maxsize==0
2012-03-17 15:10:24 -07:00
R David Murray
0863d7106c
Merge #14333 : fix test_queue so it can be run via standard unittest test discovery.
2012-03-17 16:39:44 -04:00
R David Murray
c6bfce9871
#14333 : fix test_queue so it can be run via standard unittest test discovery.
2012-03-17 16:38:39 -04:00
R David Murray
bd53809ee7
#14344 : fixed the repr of email.policy objects.
2012-03-17 15:11:59 -04:00
Raymond Hettinger
bc8e81dcc3
Section-off the source for better readability.
2012-03-17 00:24:09 -07:00
Raymond Hettinger
dce583e0bd
Minor beautification.
2012-03-16 22:12:20 -07:00
Benjamin Peterson
96384b93aa
make extra arguments to object.__init__/__new__ to errors in most cases (finishes #1683368 )
2012-03-17 00:05:44 -05:00
R David Murray
80e22b56d3
Merge #11686 : add missing entries to email __all__ lists.
...
Original patch by Steffen Daode Nurpmeso
2012-03-16 22:46:14 -04:00
R David Murray
1b6c724df0
#11686 : add missing entries to email __all__ lists.
...
Original patch by Steffen Daode Nurpmeso
2012-03-16 22:43:05 -04:00
R David Murray
7104c7295c
#12788 : fix error in test_policy when run under refleak detection
2012-03-16 21:39:57 -04:00
Raymond Hettinger
4f5139ba20
Root variable is not changed.
2012-03-16 17:08:37 -07:00
Raymond Hettinger
202d1ad3f6
Fix whitespace
2012-03-16 17:05:17 -07:00
Raymond Hettinger
d37fb55910
Unique sentinel value for cache.get()
2012-03-16 17:04:11 -07:00
Raymond Hettinger
6e8c817687
Refactor calculation of the cache key. Minor code cleanups.
2012-03-16 16:53:05 -07:00
Antoine Pitrou
020bf28200
Merge
2012-03-17 00:24:12 +01:00
Antoine Pitrou
846fd302a0
Issue #14335 : multiprocessing's custom Pickler subclass now inherits from the C-accelerated implementation.
...
Patch by sbt.
2012-03-17 00:23:04 +01:00
Benjamin Peterson
29a837d857
merge heads
2012-03-16 18:22:53 -05:00
Benjamin Peterson
954cf578c7
clear the root with the cache
2012-03-16 18:22:26 -05:00
Raymond Hettinger
d656958915
Minor code cleanup.
2012-03-16 11:48:12 -07:00
Raymond Hettinger
57b2959d26
Eliminate duplicate link lookup. Minor cleanup.
2012-03-16 11:21:39 -07:00
Benjamin Peterson
de394543b4
merge 3.2 ( #14334 )
2012-03-16 09:35:38 -05:00
Benjamin Peterson
16d84ac355
check to make sure the attribute is a string ( #14334 )
2012-03-16 09:32:59 -05:00
Eli Bendersky
6e33525098
fix trailing whitespace
2012-03-16 15:32:04 +02:00
Eli Bendersky
2b711409c7
Add a test that makes sure TreeBuilder can be passed element_factory in the
...
constructor. Marked as expectedFailure since it currently fails for the C
implementation.
2012-03-16 15:29:50 +02:00
Raymond Hettinger
e60d2d9911
merge
2012-03-16 01:18:33 -07:00
Raymond Hettinger
ec0e91045e
Improve the memory utilization (and speed) of functools.lru_cache().
2012-03-16 01:16:31 -07:00
Senthil Kumaran
209d70e579
closes issue10484 - Fix the http.server's cgi PATH_INFO handling problem
2012-03-16 01:14:51 -07:00
Senthil Kumaran
be3f851411
closes issue10484 - Fix the http.server's cgi PATH_INFO handling problem
2012-03-16 01:13:50 -07:00
Eli Bendersky
5b77d81314
Issue #14207 : the ParseError exception raised by _elementtree was made
...
consistent to the one raised by the Python module (the 'code' attribute
was added).
In addition, the exception is now documented.
Added a test to check that ParseError has the required attributes, and
threw away the equivalent doctest which is no longer required.
2012-03-16 08:20:05 +02:00
Eli Bendersky
f996e775ea
Closes Issue #14246 : _elementtree parser will now handle io.StringIO
2012-03-16 05:53:30 +02:00
Senthil Kumaran
e53d977e80
Explain the use of charset parameter with Content-Type header: issue11082
2012-03-15 18:15:34 -07:00
Senthil Kumaran
6b3434ae04
Explain the use of charset parameter with Content-Type header. Issue11082
2012-03-15 18:11:16 -07:00
Benjamin Peterson
2afe6aeae8
perform yield from delegation by repeating YIELD_FROM opcode ( closes #14230 )
...
This allows generators that are using yield from to be seen by debuggers. It
also kills the f_yieldfrom field on frame objects.
Patch mostly from Mark Shannon with a few tweaks by me.
2012-03-15 15:37:39 -05:00
Senthil Kumaran
3270d11d8a
port from 3.2 - Fix the urllib closing issue which hangs on particular ftp urls/ftp servers. closes issue11199
2012-03-15 13:28:27 -07:00
Senthil Kumaran
73277fe0eb
closes Issue #11199 : Fix the with urllib which hangs on particular ftp urls.
2012-03-15 13:26:12 -07:00
Giampaolo Rodola'
a4e018889a
(sched) when run() is invoked with blocking=False return the deadline of the next scheduled call in the scheduler; this use case was suggested in http://bugs.python.org/issue1641#msg149453
2012-03-15 13:05:41 +01:00
Vinay Sajip
17160fd6d6
Fixes #14314 : Improved SMTP timeout handling.
2012-03-15 12:02:08 +00:00
Victor Stinner
3d7c878fe3
Issue #14222 : Use the new time.steady() function instead of time.time() for
...
timeout in queue and threading modules to not be affected of system time
update.
2012-03-15 01:22:16 +01:00
Victor Stinner
071eca3f5c
Issue #10278 : Add an optional strict argument to time.steady(), False by default
2012-03-15 01:17:09 +01:00
Victor Stinner
ec919cc74d
Issue #10278 : Drop time.monotonic() function, rename time.wallclock() to time.steady()
...
* On Mac OS X, time.steady() now uses mach_absolute_time(), a monotonic clock
* Optimistic change: bet that CLOCK_MONOTONIC and CLOCK_REALTIME are available
when clock_gettime() is available
* Rewrite time.steady() documentation
2012-03-15 00:58:32 +01:00
Benjamin Peterson
1a5e5de818
remove get_prefix and set_prefix ( #13248 )
2012-03-14 17:41:15 -05:00
Michael Foord
d7c65e2807
Removed XXX from unittest.mock docstring and switch to a nicer try...except...finally
2012-03-14 14:56:54 -07:00
Michael Foord
a74b3aa0cc
Remove more Python 2 compatibility cruft from unittest.mock
2012-03-14 14:40:22 -07:00
Senthil Kumaran
e7c8fdee18
merge heads
2012-03-14 14:00:31 -07:00
Senthil Kumaran
2f9bf35007
Fix the buildbot breakdown - issue 10050
2012-03-14 13:59:56 -07:00
Andrew Svetlov
8247b188f3
Megre from tip
2012-03-14 13:46:08 -07:00
Andrew Svetlov
b53da6e374
Merge from tip
2012-03-14 13:44:02 -07:00
Senthil Kumaran
38b968b913
deprecated the old urllib primitives in 3.3 urllib package - issue 10050
2012-03-14 13:43:53 -07:00
Michael Foord
c17adf4151
Remove Python 2 compatibility cruft from unittest.mock
2012-03-14 13:30:29 -07:00
Andrew Svetlov
05bab93339
Issue #14200 : Idle shell crash on printing non-BMP unicode character.
...
UnicodeEncodeError is raised for strings contains non-BMP characters.
For eval results unicode escaping is used, print() calls display
exception with traceback as usual.
2012-03-14 13:22:12 -07:00
Michael Foord
ebff097937
And another one... mock import fix.
2012-03-14 13:01:31 -07:00
Michael Foord
83a16856ee
Fix another mock import
2012-03-14 12:58:46 -07:00
Michael Foord
0ca9acd1dd
Fix import failure in mock test
2012-03-14 12:38:06 -07:00
R David Murray
b53319f509
#12818 : remove escaping of () in quoted strings in formataddr
...
The quoting of ()s inside quoted strings is allowed by the RFC, but is not
needed. There seems to be no reason to add needless escapes.
2012-03-14 15:31:47 -04:00
Michael Foord
345266aa7e
PEP 417: Adding unittest.mock
2012-03-14 12:24:34 -07:00
R David Murray
8d8f110492
#14062 : fix BytesParser handling of Header objects
...
This is a different fix than the 3.2 fix, but the new tests are the same.
This also affected smtplib.SMTP.send_message, which calls BytesParser.
2012-03-14 14:24:22 -04:00
R David Murray
9fd170e2d0
#14062 : fix BytesParser handling of linesep for Header objects
...
This also affected smtplib.SMTP.send_message, which calls BytesParser.
2012-03-14 14:05:03 -04:00
Antoine Pitrou
9d8c186650
Issue #13839 : When invoked on the command-line, the pstats module now accepts several filenames of profile stat files and merges them all.
...
Patch by Matt Joiner.
2012-03-14 17:47:11 +01:00
R David Murray
e2922835b0
Merge #14291 : if a header has non-ascii unicode, default to CTE using utf-8
...
In Python2, if a unicode string was assigned as the value of a header,
email would automatically CTE encode it using the UTF8 charset.
This capability was lost in the Python3 translation, and this patch
restores it.
Patch by Ali Ikinci, assisted by R. David Murray.
I also added a fix for the mailbox test that was depending (with a comment
that it was a bad idea to so depend) on non-ASCII causing message_from_string
to raise an error. It now uses support.patch to induce an error during
message serialization.
2012-03-14 03:03:27 -04:00
R David Murray
7441a7aedd
#14291 : if a header has non-ascii unicode, default to CTE using utf-8
...
In Python2, if a unicode string was assigned as the value of a header,
email would automatically CTE encode it using the UTF8 charset.
This capability was lost in the Python3 translation, and this patch
restores it.
Patch by Ali Ikinci, assisted by R. David Murray.
I also added a fix for the mailbox test that was depending (with a comment
that it was a bad idea to so depend) on non-ASCII causing message_from_string
to raise an error. It now uses support.patch to induce an error during
message serialization.
2012-03-14 02:59:51 -04:00
Senthil Kumaran
e24f96a059
Issue10050 - urlretrieve uses newer urlopen. reporthook of urlretrieve takes, block number, block read size, file_size
2012-03-13 19:29:33 -07:00
Andrew Svetlov
a2251aadaa
Issue #989712 : Support using Tk without a mainloop.
2012-03-13 18:36:13 -07:00
Victor Stinner
8050ca9c6f
Issue #14180 : TestDateTime.test_microsecond_rounding() handles localtime() and
...
gmtime() failure on Windows
2012-03-14 00:17:05 +01:00
R David Murray
910df329fd
#8315 : add automatic unittest test discovery in test.test_email
2012-03-13 18:02:22 -04:00
Martin v. Löwis
eb945a938d
Issue #5219 : Prevent event handler cascade in IDLE.
...
Patch by Roger Serwy.
2012-03-13 14:32:29 -07:00
Martin v. Löwis
ee381a0c36
Issue #5219 : Prevent event handler cascade in IDLE.
...
Patch by Roger Serwy.
2012-03-13 14:18:36 -07:00
Martin v. Löwis
5c3c424237
Issue #2843 : Add new Tk API to Tkinter.
...
Patch by Guilherme Polo and Andrew Svetlov.
2012-03-13 13:40:42 -07:00
Victor Stinner
5d272cc6a2
Close #14180 : Factorize code to convert a number of seconds to time_t, timeval or timespec
...
time.ctime(), gmtime(), time.localtime(), datetime.date.fromtimestamp(),
datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now
raises an OverflowError, instead of a ValueError, if the timestamp does not fit
in time_t.
datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now
round microseconds towards zero instead of rounding to nearest with ties going
away from zero.
2012-03-13 13:35:55 +01:00
Vinay Sajip
69437da15f
Merged upstream change.
2012-03-13 12:18:19 +00:00
Vinay Sajip
3cac309939
Merged upstream change.
2012-03-13 12:15:46 +00:00
Vinay Sajip
0f15181d39
Closes #14267 : Merged fix from 3.2.
2012-03-13 12:15:09 +00:00
Vinay Sajip
27f48979ca
Closes #14267 : Corrected computation of rollover filename.
2012-03-13 12:10:33 +00:00
Senthil Kumaran
19b114b818
merge to 3.3 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers
2012-03-13 01:51:20 -07:00
Senthil Kumaran
47b5ddb9cf
3.2 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers
2012-03-13 01:50:27 -07:00
Michael Foord
5738e4f3df
Merge
2012-03-13 00:14:19 -07:00
Michael Foord
e01c62cd6b
Fix unittest test discovery for Jython
2012-03-13 00:09:54 -07:00
R David Murray
a9719057a2
#8942 : add test for __path__ contents in zipimport tests
...
Patch by Tatiana Al-Chueyr.
2012-03-12 21:16:33 -04:00
Martin v. Löwis
2b695a4678
Issue #1178863 : Separate initialisation from setting when initializing
...
Tkinter.Variables; harmonize exceptions to ValueError; only delete variables
that have not been deleted; assert that variable names are strings
Patch by Andrew Svetlov.
2012-03-12 17:47:35 -07:00
Sean Reifschneider
7b3c975aaf
closes #14259 re.finditer() now takes keyword arguments: pos, endpos.
...
Contrary to the documentation, finditer() did not take pos and endpos
keyword arguments.
2012-03-12 18:22:38 -06:00
Ezio Melotti
cc50ba26bd
#14179 : merge with 3.2.
2012-03-13 01:33:30 +02:00
Ezio Melotti
df723e1e5e
#14179 : add tests for re.compile. Patch by Florian Mladitsch.
2012-03-13 01:29:48 +02:00
Eric V. Smith
f2bb8898ea
Merge heads.
2012-03-12 15:29:06 -07:00
Eric V. Smith
97722c4132
str.format_map tests don't do what they say: fix to actually implement the intent of the test. Closes #13450 . Patch by Akira Li.
2012-03-12 15:26:21 -07:00
Michael Foord
56bac7b9e1
Merge
2012-03-12 15:25:12 -07:00
Michael Foord
b36c70c9ff
Move adding unittest test discovery command line options into their own method.
2012-03-12 15:24:46 -07:00
Eric V. Smith
1d4798cb93
Merge heads.
2012-03-12 15:18:30 -07:00
Eric V. Smith
edbb6ca084
str.format_map tests don't do what they say: fix to actually implement the intent of the test. Closes #13450 .
2012-03-12 15:16:22 -07:00
Ezio Melotti
48d578c02a
#13394 : add more tests for the aifc module and use warnings.warn instead of print. Patch by Oleg Plakhotnyuk.
2012-03-12 23:57:18 +02:00
Ezio Melotti
85769539a3
#13394 : add more tests for the aifc module. Patch by Oleg Plakhotnyuk.
2012-03-12 23:52:40 +02:00
Michael Foord
c1f5d8af57
Merge
2012-03-12 13:54:03 -07:00
Michael Foord
5f99ced092
Refactor unittest command line handling to always use optparse
2012-03-12 13:53:04 -07:00
Łukasz Langa
17591c1a1d
Head merge.
2012-03-12 19:59:48 +01:00
Łukasz Langa
f3078fbee2
Fixes #13842 : cannot pickle Ellipsis or NotImplemented.
...
Thanks for James Sanders for the bug report and the patch.
2012-03-12 19:46:12 +01:00
Benjamin Peterson
f28fcff17d
adjust for change in AST type
2012-03-12 11:19:19 -07:00
Benjamin Peterson
7e0dbfbbde
give the AST class a __dict__
2012-03-12 09:46:44 -07:00
Benjamin Peterson
61a4161de4
merge 3.2
2012-03-12 09:43:27 -07:00
Benjamin Peterson
ef87f06798
allow AST objects to be like its subclasses
2012-03-12 09:43:09 -07:00
Benjamin Peterson
6645f7e590
merge heads
2012-03-12 09:28:51 -07:00
Benjamin Peterson
09b4bd03f6
merge 3.2
2012-03-12 09:28:36 -07:00
Benjamin Peterson
d279e286f2
every other ast object has a dict, so I think AST should, too
2012-03-12 09:27:36 -07:00
Eric V. Smith
851cad7616
Make test_logging no longer fail if zlib not present. Closes #14256 . Patch by Pedro Kroger.
2012-03-11 22:46:04 -07:00
Antoine Pitrou
b69ef16fe6
Issue #14252 : Fix subprocess.Popen.terminate() to not raise an error under Windows when the child process has already exited.
2012-03-11 19:33:29 +01:00
Antoine Pitrou
1f9a835400
Issue #14252 : Fix subprocess.Popen.terminate() to not raise an error under Windows when the child process has already exited.
2012-03-11 19:29:12 +01:00
Georg Brandl
4c7c3c58be
Close #14210 : add command argument completion to pdb: complete file names, global/local variables, aliases
2012-03-10 22:36:48 +01:00
Antoine Pitrou
eab2a50dfc
PEP8-ize test names
2012-03-10 16:34:40 +01:00
Antoine Pitrou
8cd8d5e8f2
Remove useless failOnException() method
2012-03-10 16:20:24 +01:00
Georg Brandl
6aacc14e29
Merge with 3.2.
2012-03-10 09:27:30 +01:00
Georg Brandl
e144c74e02
Closes #14244 : add info about capturing groups and maxsplit to the docstring of re.split().
2012-03-10 09:26:53 +01:00
Victor Stinner
28393828e2
Issue #14205 : Fix test_dict.test_mutating_lookup()
2012-03-09 22:58:51 +01:00
Antoine Pitrou
3774977de2
Relax timeout tests for weak Windows buildbot
2012-03-09 18:40:15 +01:00
Victor Stinner
63ed5664a1
Issue #14231 : Lib/test/crashers/borrowed_ref_1.py was fixed by ba6376dff6c4.
2012-03-09 13:59:42 +01:00
Eli Bendersky
865756a94c
Issue #14178 : Problem deleting slices with steps != +1 in the _elementtree module.
...
Fixed the problem and added some tests. Closes #14178
2012-03-09 13:38:15 +02:00
Victor Stinner
40c9565bcc
Issue #14211 : Oops, I removed the wrong file :-)
2012-03-09 00:52:07 +01:00
Victor Stinner
2d01dc00bc
Issue #14211 : _PyObject_GenericSetAttrWithDict() keeps a strong reference to
...
the descriptor because it may be destroyed before being used, destroyed during
the update of the dict for example.
2012-03-09 00:44:13 +01:00
Victor Stinner
d74782b0ac
Close #14199 : _PyType_Lookup() and super_getattro() keep a strong reference to
...
the type MRO to avoid a crash if the MRO is changed during the lookup.
2012-03-09 00:39:08 +01:00
Benjamin Peterson
9a6338651e
merge 3.2 (#3787e896dbe9)
2012-03-07 18:52:52 -06:00
Benjamin Peterson
52c424343d
allow cycles throught the __dict__ slot to be cleared ( closes #1469629 )
...
Patch from Armin, test from me.
2012-03-07 18:41:11 -06:00
Benjamin Peterson
099a78fe6d
make delegating generators say they running ( closes #14220 )
2012-03-07 17:57:04 -06:00
Benjamin Peterson
33d21a24fa
merge 3.2 ( #14212 )
2012-03-07 14:59:13 -06:00
Benjamin Peterson
1ae230aa1a
merge heads
2012-03-07 14:50:35 -06:00
Benjamin Peterson
e48944b69c
keep the buffer object around while we're using it ( closes #14212 )
2012-03-07 14:50:25 -06:00
Éric Araujo
2fa0cbc9ae
Remove buggy change for #13719 in packaging
2012-03-07 20:56:18 +01:00
Éric Araujo
00b41fc828
Merge 3.2
2012-03-07 20:50:06 +01:00
Éric Araujo
a420c820fe
Backout buggy patch committed for #13719
2012-03-07 20:48:55 +01:00
Brett Cannon
f67e494ca8
merge
2012-03-06 15:33:24 -05:00
Antoine Pitrou
5bb9a8f237
Remove a couple of local imports.
2012-03-06 13:43:24 +01:00
Antoine Pitrou
6c64cc1973
Reap processes at test end to avoid false positives in reference leak detection.
2012-03-06 13:42:35 +01:00
Victor Stinner
b1f7f6343b
test_pty: fix ResourceWarning warnings
2012-03-06 02:04:58 +01:00
Victor Stinner
198b291df7
Close #14205 : dict lookup raises a RuntimeError if the dict is modified during
...
a lookup.
"if you want to make a sandbox on top of CPython, you have to fix segfaults"
so let's fix segfaults!
2012-03-06 01:03:13 +01:00
Vinay Sajip
b2fcd3a989
Added delay before record creation.
2012-03-05 20:02:53 +00:00
Antoine Pitrou
bdb1cf1ca5
Issue #12328 : Fix multiprocessing's use of overlapped I/O on Windows.
...
Also, add a multiprocessing.connection.wait(rlist, timeout=None) function
for polling multiple objects at once. Patch by sbt.
Complete changelist from sbt's patch:
* Adds a wait(rlist, timeout=None) function for polling multiple
objects at once. On Unix this is just a wrapper for
select(rlist, [], [], timeout=None).
* Removes use of the SentinelReady exception and the sentinels argument
to certain methods. concurrent.futures.process has been changed to
use wait() instead of SentinelReady.
* Fixes bugs concerning PipeConnection.poll() and messages of zero
length.
* Fixes PipeListener.accept() to call ConnectNamedPipe() with
overlapped=True.
* Fixes Queue.empty() and SimpleQueue.empty() so that they are
threadsafe on Windows.
* Now PipeConnection.poll() and wait() will not modify the pipe except
possibly by consuming a zero length message. (Previously poll()
could consume a partial message.)
* All of multiprocesing's pipe related blocking functions/methods are
now interruptible by SIGINT on Windows.
2012-03-05 19:28:37 +01:00
Stefan Krah
1e88f3faa6
Merge.
2012-03-05 17:48:21 +01:00
Stefan Krah
1649c1b33a
Issue #14181 : Preserve backwards compatibility for getbufferprocs that a) do
...
not adhere to the new documentation and b) manage to clobber view->obj before
returning failure.
2012-03-05 17:45:17 +01:00
Éric Araujo
c53d624235
Merge 3.2
2012-03-05 17:04:20 +01:00
Éric Araujo
b8e280d225
Make packaging’ upload command work with bdist_msi products ( #13719 )
2012-03-05 17:04:07 +01:00
Éric Araujo
c3705d3ac4
Fix NameError from #13719 fix
2012-03-05 17:02:31 +01:00
Éric Araujo
6a59b70cba
Merge 3.2
2012-03-05 16:24:07 +01:00
Éric Araujo
80f7102d43
Improve packaging.database documentation
2012-03-05 16:16:37 +01:00
Éric Araujo
420f698d6e
Backport minidom attribute tests from default (73c76466cf44).
...
Some minidom code changed between 3.2 and 3.3, so to be sure to avoid
differenced in behavior I’m backporting these tests added by MvL.
2012-03-05 16:11:41 +01:00
Éric Araujo
e413c06f35
Make distutils’ upload command work with bdist_msi products ( #13719 ).
...
Patch by Ralf Schmitt.
2012-03-05 16:09:29 +01:00
Éric Araujo
c432a9d5b9
Use raw string for a docstring that uses a backslash
2012-03-05 15:45:08 +01:00
Stefan Krah
bf6c7eca43
Issue #14181 : Test creating memoryviews from a static exporter with both
...
view.obj==NULL and view.obj==base.
2012-03-05 14:37:34 +01:00
Vinay Sajip
8d217c6a71
Issue #12151 : Added more info to diagnostics.
2012-03-05 12:45:51 +00:00
Florent Xicluna
8cf4b51fa4
xml.dom.minidom: add more __slots__ to limit resource usage.
2012-03-05 12:37:02 +01:00
Florent Xicluna
6c75301eb6
xml.dom: fix typo, drop unused imports.
2012-03-05 12:35:15 +01:00
Florent Xicluna
fb06746852
Flatten nested try ... finally, try ... except.
2012-03-05 11:42:49 +01:00
Stefan Krah
49ab14f452
Merge.
2012-03-05 10:50:11 +01:00
Stefan Krah
fcbb4169b9
Issue #10181 : The decision was to raise a buffer error in memory_exit()
...
if the view has exported buffers. Make this official by uncommenting
a test case.
2012-03-05 10:45:31 +01:00
Vinay Sajip
682c979871
Merged upstream changes.
2012-03-05 09:44:25 +00:00
Vinay Sajip
b6f6670d87
Added more diagnostics for diagnosing #12151 .
2012-03-05 09:43:47 +00:00
Florent Xicluna
75b5e7ee15
Issue #14007 : accept incomplete TreeBuilder objects (missing start/end/data/close) for the Python implementation as well. Add disabled tests for the doctype() method.
2012-03-05 10:42:19 +01:00
Stefan Krah
4e99a315b7
Issue #14181 : Allow memoryview construction from an object that uses the
...
getbuffer redirection scheme.
2012-03-05 09:30:47 +01:00
Martin v. Löwis
67245a6ed4
Issue #14168 : Check for presence of _attrs before accessing it.
2012-03-05 07:01:49 +01:00
Meador Inge
f1c42599ba
Issue #14195 : Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive.
2012-03-04 22:40:15 -06:00
Meador Inge
653f932eff
Issue #14195 : Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive.
2012-03-04 22:15:38 -06:00
Antoine Pitrou
5102bf476c
Fix some set algebra methods of WeakSet objects.
2012-03-04 21:16:52 +01:00
Antoine Pitrou
f7dabd849f
Merge
2012-03-04 20:59:01 +01:00