Antoine Pitrou
f25a8de845
Issue #11790 : Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.
2011-04-16 21:02:01 +02:00
Antoine Pitrou
ee4293400c
Fix possible "file already exists" error when running the tests in parallel.
...
This is a perfect example of LBYL going wrong: that code could be executed
by several workers in parallel, and os.mkdir() attempted on the same
path by multiple processes.
2011-04-16 18:53:59 +02:00
R David Murray
a2860e8b51
Improve message.py test coverage to 100%.
...
coverage.py reports 99% on branch coverage, but that appears to be
a bug or limitation in coverage.py.
2011-04-16 09:20:30 -04:00
Éric Araujo
87f3a9aac7
Fix double use of f.close().
...
The other one is in a finally block not seen in the diff, which I added
in 3bf86785cd9c (for #10252 ).
2011-04-16 00:13:39 +02:00
Éric Araujo
2a83cc61d6
Add missing types to docstring of ast.literal_eval.
...
The reST doc was updated but not the docstring.
2011-04-17 19:10:27 +02:00
Éric Araujo
e7d36fe0a6
Prevent deprecation warning
2011-04-17 16:48:52 +02:00
Vinay Sajip
e723e96103
Issue #11852 : Add missing imports and update tests.
2011-04-15 22:27:17 +01:00
Raymond Hettinger
6c9e5b779f
Fix minor subclassing issue with collections.Counter
2011-04-15 13:21:30 -07:00
Raymond Hettinger
1c746c28f3
Fix minor subclassing issue with collections.Counter
2011-04-15 13:16:46 -07:00
Ezio Melotti
71e84a6e27
#5057 : Merge with 3.1.
2011-04-15 16:50:41 +03:00
Ezio Melotti
2df6a93916
Issue #5057 : fix a bug in the peepholer that led to non-portable pyc files between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. "\U00012345"[0]).
2011-04-15 16:38:34 +03:00
Senthil Kumaran
b4bd4af8c4
merge from 3.1
2011-04-15 18:21:26 +08:00
Senthil Kumaran
397eb4411a
Issue #11467 : Fix urlparse behavior when handling urls which contains scheme specific part only digits.
2011-04-15 18:20:24 +08:00
Ezio Melotti
82b0d5d144
#11848 : Merge with 3.1.
2011-04-15 08:27:00 +03:00
Ezio Melotti
20f53f1fe7
#11848 : replace dead link in random.betavariate comment.
2011-04-15 08:25:16 +03:00
Ezio Melotti
982ef4e0bc
#11845 : Fix typo in rangeobject.c that caused a crash in compute_slice_indices. Patch by Daniel Urban.
2011-04-15 08:15:40 +03:00
Senthil Kumaran
56f1e2d875
merge from 3.1
2011-04-14 13:18:55 +08:00
Senthil Kumaran
2d2ea1b431
Fix Issue11474 - fix url2pathname() handling of '/C|/' on Windows
2011-04-14 13:16:30 +08:00
Éric Araujo
691840f218
Fix improper tests in RegisterTestCase
2011-04-14 03:49:19 +02:00
Éric Araujo
395ba35a92
Minor tweaks to a few comments in heapq
2011-04-15 23:34:31 +02:00
Raymond Hettinger
8a9c4d9866
Issue 3051: make pure python code pass the same tests as the C version.
2011-04-13 11:49:57 -07:00
Ezio Melotti
a3d0be456c
Merge with 3.1.
2011-04-13 16:44:18 +03:00
Ezio Melotti
ce073cdac7
Fix typo in docstring.
2011-04-13 16:43:21 +03:00
Ezio Melotti
04c6423fba
Merge with 3.1.
2011-04-13 07:18:24 +03:00
Ezio Melotti
d210aa1ad9
#9233 : Fix json.loads({}) to return a dict (instead of a list), when _json is not available.
2011-04-13 07:10:13 +03:00
Ezio Melotti
42368f9b0c
Remove unnecessary imports and use assertIs instead of assertTrue.
2011-04-13 07:08:17 +03:00
Ezio Melotti
c753305180
#9233 : Fix json to work properly even when _json is not available.
2011-04-13 07:04:18 +03:00
Ezio Melotti
4f95a52fe2
#9233 : skip _json-specific tests when _json is not available.
2011-04-13 06:58:29 +03:00
Alexander Belopolsky
1a20c121ef
Issue #11830 : Remove unnecessary introspection code in the decimal module.
...
Forward ported changesets b4b1f557d563 and f4adc2926bf5 by Raymond
Hettinger in branch '2.7'.
2011-04-12 23:03:39 -04:00
Raymond Hettinger
2df393cc51
Fix nit.
2011-04-12 18:57:55 -07:00
Raymond Hettinger
f6445e8f41
Issue 11718: Teach IDLE's open module dialog to find packages.
2011-04-12 18:30:14 -07:00
R David Murray
d5315482e9
Merge #10019 : Fix regression relative to 2.6: add newlines if indent=0
...
Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
2011-04-12 21:09:18 -04:00
R David Murray
3dd02d62c9
#10019 : Fix regression relative to 2.6: add newlines if indent=0
...
Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
2011-04-12 21:02:45 -04:00
Benjamin Peterson
62f8bcb0a4
merge 3.1
2011-04-12 18:34:30 -05:00
Benjamin Peterson
abdeeff3d1
merge heads
2011-04-12 18:34:06 -05:00
Benjamin Peterson
bd3e362089
make assigning to a bytes literal a syntax error ( closes #11506 )
2011-04-12 18:33:28 -05:00
Senthil Kumaran
b17abb1af9
merge from 3.1
2011-04-13 07:22:29 +08:00
Senthil Kumaran
2643041970
Fix Issue11703 - urllib2.geturl() does not return correct url when the original url contains #fragment. Patch Contribution by Santoso Wijaya.
2011-04-13 07:01:19 +08:00
Raymond Hettinger
f03d3028e0
Issue 11747: Fix output format for context diffs.
2011-04-12 15:19:33 -07:00
Raymond Hettinger
3780542039
Issue 11747: Fix output format for context diffs.
2011-04-12 15:14:12 -07:00
R David Murray
94f90dd4a1
Merge: Add maxlinelen to docstring, delete obsolete wording
2011-04-12 15:01:28 -04:00
R David Murray
308f14aeae
Add maxlinelen to docstring, delete obsolete wording
2011-04-12 15:00:44 -04:00
Antoine Pitrou
27be5da831
Issue #11815 : Remove dead code in concurrent.futures (since a blocking Queue
...
cannot raise queue.Empty).
2011-04-12 17:48:46 +02:00
brian.curtin
727b498102
Fix #5162 . Allow child spawning from Windows services (via pywin32).
2011-04-11 17:57:59 -05:00
brian.curtin
e2f299845d
Fix #5162 . Allow child spawning from Windows services (via pywin32).
2011-04-11 17:56:23 -05:00
Raymond Hettinger
49353d0e8f
Issue #11747 : Fix range formatting in context and unified diffs.
2011-04-11 12:40:58 -07:00
Raymond Hettinger
47e120e70c
Cleanup and modernize code prior to working on Issue 11747.
2011-04-10 17:14:56 -07:00
Antoine Pitrou
bed9a5b6b3
Issue #11814 : Fix likely typo in multiprocessing.Pool._terminate().
2011-04-11 00:20:23 +02:00
Antoine Pitrou
81dee6b4d4
Issue #8428 : Fix a race condition in multiprocessing.Pool when terminating
...
worker processes: new processes would be spawned while the pool is being
shut down. Patch by Charles-François Natali.
2011-04-11 00:18:59 +02:00
Ned Deily
2604e33f30
Issue9670: Merge backout to 3.2.
2011-04-09 14:53:47 -07:00
Ned Deily
45e47e58ed
Issue9670: Back out changeset 378b40d71175; test fails on other platforms
...
and on OS X with pydebug.
2011-04-09 14:50:59 -07:00
Ned Deily
15012a67d2
Issue #9670 : merge with 3.2
2011-04-09 12:37:55 -07:00
Ned Deily
517ac72b00
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(Patch by Ronald Oussoren)
2011-04-09 12:32:12 -07:00
Ross Lagerwall
226580e6dc
Merge with 3.1
2011-04-09 20:05:04 +02:00
Ross Lagerwall
e620d10701
Issue #11719 : Fix message about unexpected test_msilib skip.
...
Patch by Nadeem Vawda.
2011-04-09 19:30:03 +02:00
R David Murray
80221ed0c0
Merge #11492 : fix header truncation on folding when there are runs of split chars.
...
Not a complete fix for this issue.
2011-04-07 20:56:31 -04:00
R David Murray
e1292a25d8
#11492 : fix header truncation on folding when there are runs of split chars.
...
Not a complete fix for this issue.
2011-04-07 20:54:03 -04:00
R David Murray
b65df26830
Merge: Improve test coverage of _split_ascii method.
2011-04-07 20:40:01 -04:00
R David Murray
7da4db118e
Improve test coverage of _split_ascii method.
2011-04-07 20:37:17 -04:00
Ezio Melotti
2e3607c1e7
#7311 : fix html.parser to accept non-ASCII attribute values.
2011-04-07 22:03:31 +03:00
Antoine Pitrou
540ab064e2
Issue #11766 : increase countdown waiting for a pool of processes to start
...
up. Hopefully fixes transient buildbot failures.
2011-04-06 22:51:17 +02:00
R David Murray
c5c1472895
#11605 : don't use set/get_payload in feedparser; they do conversions.
...
Really the whole API needs to be gone over to restore the
separation of concerns; but that's what email6 is about.
2011-04-06 08:13:02 -04:00
Senthil Kumaran
ae664fb528
Merge from 3.1
2011-04-06 14:11:09 +08:00
Senthil Kumaran
8f377a3bbe
Issue #10762 : Guard against invalid/non-supported format string '%f' on Windows. Patch Santoso Wijaya.
2011-04-06 12:54:06 +08:00
Alexander Belopolsky
b6f5ec7370
Issue #11576 : Fixed timedelta subtraction glitch on big timedelta values
2011-04-05 20:07:38 -04:00
Antoine Pitrou
04026cf56c
Try to fix sporadic test_multiprocessing failure
2011-04-05 18:12:15 +02:00
Antoine Pitrou
c824e9a713
Try to fix sporadic test_multiprocessing failure
2011-04-05 18:11:33 +02:00
Ross Lagerwall
02ba73c0ef
Merge with 3.1
2011-04-05 15:48:47 +02:00
Ross Lagerwall
4f61b02520
Issue #10963 : Ensure that subprocess.communicate() never raises EPIPE.
2011-04-05 15:34:00 +02:00
Antoine Pitrou
4333affb74
Try to fix sporadic failure in test_thread/test_threading
2011-04-04 22:00:10 +02:00
Antoine Pitrou
45fdb457da
Try to fix sporadic failure in test_thread/test_threading
2011-04-04 21:59:09 +02:00
Antoine Pitrou
e9b2a4cb59
Issue #11761 : make tests for gc.get_count() less fragile
2011-04-04 19:51:33 +02:00
Antoine Pitrou
b35f29a0e0
Issue #11761 : make tests for gc.get_count() less fragile
2011-04-04 19:50:42 +02:00
Steven Bethard
7cb20a8605
Issue #9347 : Fix formatting for tuples in argparse type= error messages.
2011-04-04 01:53:02 +02:00
Antoine Pitrou
43bf045be0
Issue #11749 : try to fix transient test_socket failure
2011-04-04 01:21:37 +02:00
Ezio Melotti
361467e522
#11282 : the fail* methods will stay around a few more versions.
2011-04-03 17:37:58 +03:00
Antoine Pitrou
7899acfc23
Issue #11618 : Fix the timeout logic in threading.Lock.acquire() under
...
Windows.
2011-03-31 01:00:32 +02:00
Kristjan Valur Jonsson
8c5b748026
Merge
2011-03-30 11:55:52 +00:00
Kristjan Valur Jonsson
d05595697d
Merge 3.1
2011-03-30 11:54:13 +00:00
Kristjan Valur Jonsson
fa3edbed25
Merge 3.1
2011-03-30 11:24:58 +00:00
Kristjan Valur Jonsson
35722a9376
Bugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle.
...
ti can raise an exception even if PyLong_Check() has
succeeded.
2011-03-30 11:04:28 +00:00
Guido van Rossum
20d2ab435e
Merge issue 11662.
2011-03-29 12:58:29 -07:00
Guido van Rossum
acb63092b7
Merge issue 11662.
2011-03-29 12:55:41 -07:00
guido@google.com
c768ff5d4f
Merge Issue 11662 from 3.1 branch.
2011-03-29 11:51:26 -07:00
guido@google.com
a119df91f3
Issue 11662: Fix vulnerability in urllib/urllib2.
...
(This version is a cleaned-up backport of a fix by Senthil Kumaran.)
2011-03-29 11:41:02 -07:00
Benjamin Peterson
6a2638b163
Correct handling of functions with only kwarg args in getcallargs ( closes #11256 )
...
A patch from Daniel Urban.
2011-03-28 17:32:31 -05:00
Martin v. Löwis
987403bf14
merge #11696
2011-03-27 21:07:13 +02:00
Martin v. Löwis
f8d887e0d3
Closes #11696 : Fix ID generation in msilib.
...
Patch by Mark Mc Mahon.
2011-03-27 21:05:51 +02:00
Mark Dickinson
79a9036d09
Merge #9696
2011-03-27 16:30:07 +01:00
Mark Dickinson
92b60d55d9
Issue #9696 : Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying to pack a negative (in-range) integer.
2011-03-27 16:25:40 +01:00
Steven Bethard
8a6a198abf
Issue #9026 : Fix order of argparse sub-commands in help messages.
2011-03-27 13:53:53 +02:00
Martin v. Löwis
a6e0b4f2ed
merge #7639
2011-03-27 10:14:57 +02:00
Martin v. Löwis
9bad3a99dd
Fix short file name generation in bdist_msi.
...
Patch by Christoph Gohlke.
Closes #7639 .
2011-03-27 10:12:07 +02:00
Benjamin Peterson
1a07f07337
merge 3.1
2011-03-26 18:17:05 -05:00
Benjamin Peterson
c01ffdf61e
revert unintended changes
2011-03-26 18:11:54 -05:00
Benjamin Peterson
8d6c62dd89
check possible recursive _as_parameter_ to prevent segfault ( closes #1838 )
2011-03-26 17:56:28 -05:00
Ross Lagerwall
17ace7a07c
Merge with 3.1
2011-03-26 21:21:46 +02:00
Ross Lagerwall
b8a5769a6d
Issue #11659 : Fix ResourceWarning in test_subprocess introduced by #11459 .
...
Patch by Ben Hayden.
2011-03-26 21:19:57 +02:00
Antoine Pitrou
c13d454e84
Issue #11635 : Don't use polling in worker threads and processes launched by
...
concurrent.futures.
2011-03-26 19:29:44 +01:00
Antoine Pitrou
d9faa201ce
Read HTTP response inside transient_internet()
2011-03-26 18:38:06 +01:00