Nadeem Vawda
0cc4fd9df7
Issue #12050 : zlib.decompressobj().decompress() now clears the unconsumed_tail
...
attribute when called without a max_length argument.
2011-05-14 14:29:07 +02:00
Ezio Melotti
4dcb7be696
#7960 : fix docstrings for captured_output and captured_stdout.
2011-05-14 08:19:43 +03:00
Ezio Melotti
e3992eb743
#5723 : Improve json tests to be executed with and without accelerations.
2011-05-14 06:24:53 +03:00
Ezio Melotti
720f8dea19
Change import_fresh_module to work with packages.
2011-05-14 06:02:25 +03:00
Kurt B. Kaiser
d82a8876f0
Issue #11896 : Save on Close failed despite selecting "Yes" in dialog.
...
Backport 70055:35ed0efd7dd3
2011-05-12 21:18:47 -04:00
Antoine Pitrou
ee46a7bf9c
Issue #12062 : In the `io` module, fix a flushing bug when doing a certain
...
type of I/O sequence on a file opened in read+write mode (namely: reading,
seeking a bit forward, writing, then seeking before the previous write but
still within buffered data, and writing again).
2011-05-13 00:31:52 +02:00
Ezio Melotti
c1ec7b5d44
#12051 : Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations.
2011-05-11 00:55:35 +03:00
Antoine Pitrou
47d1d0dc30
Issue #8498 : In socket.accept(), allow to specify 0 as a backlog value in
...
order to accept exactly one connection. Patch by Daniel Evers.
2011-05-10 19:16:03 +02:00
Victor Stinner
b1241f9619
(Merge 3.1) Issue #12012 : ssl.PROTOCOL_SSLv2 becomes optional
...
OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.
Optimize also ssl.get_protocol_name(): speed does matter!
2011-05-10 01:52:03 +02:00
Ezio Melotti
b47553a19b
Some more tests were incorrectly marked as C specific.
2011-05-09 18:32:18 +03:00
Martin v. Löwis
591c2dfa42
Issue 11164: Remove obsolete allnodes test from minidom test.
...
Patch by Arfrever Frehtes Taifersar Arahesis.
2011-05-09 08:19:13 +02:00
Ezio Melotti
5c5d7e2511
#11910 : Fix test_heapq to skip the C tests when _heapq is missing.
2011-05-09 06:54:53 +03:00
Ezio Melotti
193c34ba86
#11910 : change import_fresh_module to return None when one of the "fresh" modules can not be imported.
2011-05-09 06:28:42 +03:00
Ezio Melotti
7055064bbb
Fix deprecation warnings in test_unittest.
2011-05-09 05:58:17 +03:00
Benjamin Peterson
01c9a16031
import_fresh_module ought to be in __all__
2011-05-08 15:32:04 -05:00
Éric Araujo
b76eb9743e
Make test_distutils pass without zlib ( fixes #9435 )
2011-05-08 16:27:13 +02:00
Raymond Hettinger
1bd816e58e
Fix cut and paste error.
2011-05-07 15:19:34 -07:00
Raymond Hettinger
8dd0624660
Some tests were incorrectly marked as C specific.
2011-05-07 14:16:42 -07:00
Antoine Pitrou
21ce8f0d66
Issue #11927 : SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath.
2011-05-07 19:59:33 +02:00
Ezio Melotti
0639be6505
#10169 : Fix argument parsing in socket.sendto() to avoid error masking.
2011-05-07 19:21:22 +03:00
Ezio Melotti
cec464951e
#12017 : Fix segfault in json.loads() while decoding highly-nested objects using the C accelerations.
2011-05-07 17:40:23 +03:00
Nadeem Vawda
5ae6c42f52
Fix potential resource leak in test_mmap.
2011-05-07 14:34:22 +02:00
Nadeem Vawda
d0a8f16031
Issue #11277 : Fix tests - crash will not trigger if the file is closed and reopened.
2011-05-07 14:12:12 +02:00
Nadeem Vawda
0d837ef2a5
Issue #11277 : Add tests for mmap crash when using large sparse files on OS X.
...
Also, reduce code duplication in LargeMmapTests.
Original patch by Steffen Daode Nurpmeso.
2011-05-07 13:17:16 +02:00
Nadeem Vawda
3b066a7e82
Issue #11277 : Remove useless test from test_zlib.
2011-05-07 11:28:03 +02:00
R David Murray
8b26c4b8ea
#11999 : sync based on comparing mtimes, not mtime to system clock
2011-05-06 21:56:22 -04:00
Ronald Oussoren
58d6b1b7a4
Backport fix for issue #10684 from 3.x
2011-05-06 11:31:33 +02:00
R David Murray
a436e713b6
#8158 : add missing 'description' description to optparse docstring.
2011-05-04 21:05:52 -04:00
Victor Stinner
28a8e96378
Issue #11277 : oops, fix checksum values of test_zlib on 32 bits
2011-05-04 21:40:36 +02:00
Victor Stinner
7fd90c403d
Issue #11277 : test_zlib tests a buffer of 1 GB on 32 bits
...
(instead of a buffer of 2 GB)
2011-05-04 21:27:39 +02:00
Ezio Melotti
6fa0947285
#11985 : update docstring of platform.python_implementation.
2011-05-04 18:37:50 +03:00
Victor Stinner
fb5d3e75bb
Issue #11277 : fix issue number in a test_zlib comment
2011-05-04 14:02:11 +02:00
Ezio Melotti
df8a8f768d
#11982 : fix json.loads('""') to return u'' rather than ''.
2011-05-04 14:40:53 +03:00
Victor Stinner
e4163e2c8d
Issue #10276 : Fix test_zlib, m may be undefined in the finally block
2011-05-03 17:25:28 +02:00
Victor Stinner
f9fb43492c
Issue #10276 : test_zlib checks that inputs of 2 GB are handled correctly by
...
crc32() and adler32(). Patch written by Steffen Daode Nurpmeso.
2011-05-03 15:19:23 +02:00
Victor Stinner
0a92d1849e
Issue #8651 : PyArg_Parse*() functions raise an OverflowError if the file
...
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int (length
bigger than 2^31-1 bytes).
2011-05-03 15:09:24 +02:00
Éric Araujo
cfa8483051
Branch merge
2011-05-02 13:36:18 +02:00
Victor Stinner
e363ec1057
(Merge 3.1) Issue #9756 : When calling a method descriptor or a slot wrapper
...
descriptor, the check of the object type doesn't read the __class__ attribute
anymore. Fix a crash if a class override its __class__ attribute (e.g. a proxy
of the str type).
2011-05-01 23:43:37 +02:00
Éric Araujo
a27c8e3746
Branch merge
2011-05-01 02:09:37 +02:00
Éric Araujo
d6dcf8263a
Add docstring to anydbm.open
2011-05-01 02:02:30 +02:00
Éric Araujo
015014ff63
Fix file handle leak
2011-05-01 02:05:58 +02:00
Brian Curtin
20de4586e6
whitespace fix
2011-04-29 16:28:52 -05:00
Brian Curtin
77b75910b7
merge
2011-04-29 16:21:51 -05:00
Senthil Kumaran
f3eb7d3454
skip the extractall test on platforms where os.symlink is not available.
2011-04-28 17:00:19 +08:00
Senthil Kumaran
011525ee92
Fix closes issue10761: tarfile.extractall failure when symlinked files are present.
2011-04-28 15:30:31 +08:00
Ezio Melotti
bdfa2e69e2
Backport test from #11926 .
2011-04-28 07:59:33 +03:00
Ezio Melotti
34b32d62f8
#11763 : don't use difflib in TestCase.assertMultiLineEqual if the strings are too long.
2011-04-27 09:45:46 +03:00
Senthil Kumaran
83627ed6d5
issue11236 getpass.getpass to respond ctrl-c or ctrl-z
2011-04-26 21:02:26 +08:00
Ezio Melotti
e3685f6b1b
#6780 : fix starts/endswith error message to mention that tuples are accepted too.
2011-04-26 05:12:51 +03:00
Raymond Hettinger
3f2b18495b
Other minor clean-ups.
2011-04-24 12:55:28 -07:00
Raymond Hettinger
c646743d02
Remove unused branch in the clear() method. Minor comment edits.
2011-04-24 12:30:39 -07:00
Raymond Hettinger
536999c697
Minor code clean-up.
2011-04-23 20:11:50 -07:00
Raymond Hettinger
b36f747464
Remove unused imports
2011-04-23 18:37:37 -07:00
Raymond Hettinger
43a5641c0b
Minor code simplification.
2011-04-23 15:51:38 -07:00
Raymond Hettinger
0b795e5b36
Minor code simplification.
2011-04-23 15:41:38 -07:00
Raymond Hettinger
7ce6d9763c
Cleanups to remove dependencies and add docstrings.
2011-04-22 18:49:53 -07:00
Raymond Hettinger
3674c8591f
Minor text rearrangement.
2011-04-20 13:11:38 -07:00
Jesus Cea
44e81687a2
startswith and endswith don't accept None as slice index. Patch by Torsten Becker. ( closes #11828 )
2011-04-20 16:39:15 +02:00
Brian Curtin
0d65433568
Fix #8886 . Use context managers throughout zipfile tests.
...
This was fixed in py3k SVN. Consider this a backport.
2011-04-19 21:15:55 -05:00
Raymond Hettinger
c98556e72e
Issue #11875 : Alter the previous fix to work better with subclasses
2011-04-19 16:53:07 -07:00
Raymond Hettinger
7cb5ec0e60
Use a generic class lookup.
2011-04-19 09:52:21 -07:00
Raymond Hettinger
e0156c43da
Issue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object.
2011-04-19 09:48:39 -07:00
Nadeem Vawda
bafc6a9fca
Fix sporadic failure in test_startfile.
...
Wait for the child process to terminate before ending the test, so that the
regrtest cleanup code doesn't get an error when it tries to delete the
temporary CWD.
2011-04-19 01:35:58 +02:00
Raymond Hettinger
efeb8bdaa2
Rework multiset methods to use less memory and to make fewer calls to __hash__.
2011-04-17 20:08:41 -07:00
Éric Araujo
b22e17b2d6
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
4800d6470c
Minor tweaks to a few comments in heapq
2011-04-15 23:34:31 +02:00
Raymond Hettinger
37c0fe56b9
Fix minor subclassing issue with collections.Counter
2011-04-15 13:12:21 -07:00
Ezio Melotti
c283a85e12
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. u"\U00012345"[0]).
2011-04-15 16:14:04 +03:00
Senthil Kumaran
ddaea1c38a
Issue #11467 : Fix urlparse behavior when handling urls which contains scheme
...
specific part only digits. Patch by Santoso Wijaya.
2011-04-15 18:07:33 +08:00
Ezio Melotti
1bb18cc39e
#11848 : replace dead link in random.betavariate comment.
2011-04-15 08:25:16 +03:00
Senthil Kumaran
a99b761972
Fix Issue11474 - url2pathname() handling of '/C|/' on Windows
2011-04-14 12:54:35 +08:00
Éric Araujo
e4f8d839a7
Fix improper tests in RegisterTestCase
2011-04-14 03:49:19 +02:00
Raymond Hettinger
9b342c6fd4
Issue 3051: make pure python code pass the same tests as the C version.
2011-04-13 11:15:58 -07:00
Ezio Melotti
2b96f0987a
#9233 : Fix json.loads({}) to return a dict (instead of a list), when _json is not available.
2011-04-13 05:37:29 +03:00
Raymond Hettinger
179816df59
Issue 11718: Teach IDLE's open module dialog to find packages.
2011-04-12 18:54:46 -07:00
R David Murray
ea8b6ef15f
#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:00:26 -04:00
Senthil Kumaran
49c440877e
Fix Issue11703 - urllib2.get_url does not handle fragment in url properly.
2011-04-13 07:31:45 +08:00
Raymond Hettinger
7c9d34722d
Issue 11747: Fix output format for context diffs.
2011-04-12 15:48:25 -07:00
Raymond Hettinger
d92232976e
Neaten-up the fix to issue 11830
2011-04-12 09:06:01 -07:00
Ezio Melotti
4ded0c0462
Remove unnecessary imports and use assertIs instead of assertTrue.
2011-04-12 16:06:43 +03:00
Ezio Melotti
1b93021214
#9233 : skip _json-specific tests when _json is not available.
2011-04-12 15:59:50 +03:00
Raymond Hettinger
9d2ad441b9
Use floor division operator instead of deprecated division operator.
2011-04-11 17:45:01 -07:00
Raymond Hettinger
e4579c3380
Issue #11830 : Remove unnecessary introspection code in the decimal module.
...
It was causing a failed import in the Turkish locale where the locale
sensitive str.upper() method caused a name mismatch.
2011-04-11 17:27:42 -07:00
brian.curtin
40b5316118
Fix #5162 . Allow child spawning from Windows services (via pywin32).
2011-04-11 18:00:59 -05:00
Ezio Melotti
8b4367ec10
#4877 : Fix a segfault in xml.parsers.expat while attempting to parse a closed file.
2011-04-11 03:44:28 +03:00
Antoine Pitrou
7dfc874a48
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:26:42 +02:00
Ned Deily
04cb72f968
Issue9670: Back out changeset b0d2b696da19; test fails on other platforms
...
and on OS X with pydebug.
2011-04-09 14:59:30 -07:00
Ned Deily
e427f0f432
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:29:58 -07:00
Ross Lagerwall
fe2f1ad5b5
Issue #11719 : Fix message about unexpected test_msilib skip.
...
Patch by Nadeem Vawda.
2011-04-09 20:39:50 +02:00
Antoine Pitrou
c2b0d76bf3
Issue #11766 : increase countdown waiting for a pool of processes to start
...
up. Hopefully fixes transient buildbot failures.
2011-04-06 22:54:14 +02:00
Senthil Kumaran
bb4e470dcd
hg pull/merge - Changes to accomodate.
2011-04-06 14:41:42 +08:00
Senthil Kumaran
792eb5dc84
Issue #10762 : Guard against invalid/non-supported format string '%f' on Windows. Patch Santoso Wijaya.
2011-04-06 14:27:47 +08:00
Alexander Belopolsky
07019bcaab
Issue #11576 : Fixed timedelta subtraction glitch on big timedelta values
2011-04-05 22:12:22 -04:00
Ned Deily
5f511826c2
Issue #7108 : Fix test_commands to not fail when special attributes ('@'
...
or '.') appear in 'ls -l' output.
2011-04-05 17:16:09 -07:00
Ezio Melotti
9f1ffb2ae9
#7311 : fix HTMLParser to accept non-ASCII attribute values.
2011-04-05 20:40:52 +03:00
Ross Lagerwall
104c3f1020
Issue #10963 : Ensure that subprocess.communicate() never raises EPIPE.
2011-04-05 15:24:34 +02:00
Steven Bethard
e3c11b44e3
Issue #9347 : Fix formatting for tuples in argparse type= error messages.
2011-04-04 01:47:52 +02:00
Guido van Rossum
b885a5bbc8
Merge cleanup.
2011-03-29 13:04:24 -07:00
Guido van Rossum
07ef62c47c
Merge issue 11662 from 2.6.
2011-03-29 12:53:55 -07:00
Guido van Rossum
079381d236
Merge issue 11662 from 2.5.
2011-03-29 12:51:16 -07:00
guido@google.com
b7ef35b582
Merge urllib/urllib2 security fix from 2.6 branch.
2011-03-29 11:14:01 -07:00
guido@google.com
9a9fdfad59
Merge urllib/urllib2 security fix from 2.5 branch.
2011-03-29 10:48:23 -07:00
Benjamin Peterson
77d466079a
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
guido@google.com
f1509306d2
Add tests for the urllib[2] vulnerability. Change to raise exceptions.
2011-03-28 13:47:01 -07:00
Martin v. Löwis
7aea63ff65
Add missing file from #11696 .
2011-03-27 21:01:03 +02:00
Martin v. Löwis
03f7e235c8
Closes #11696 : Fix ID generation in msilib.
...
Patch by Mark Mc Mahon.
2011-03-27 20:58:52 +02:00
Mark Dickinson
d687be09b4
Issue #9696 : Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying to pack a negative (in-range) integer.
2011-03-27 16:15:24 +01:00
Steven Bethard
bc3b104e46
Issue #9026 : Fix order of argparse sub-commands in help messages. (Merged from 3.2.)
2011-03-27 13:57:55 +02:00
Martin v. Löwis
49b0ce06f0
Fix short file name generation in bdist_msi.
...
Patch by Christoph Gohlke.
Closes #7639 .
2011-03-27 10:10:46 +02:00
Benjamin Peterson
8c05568e06
revert unintended changes
2011-03-26 18:11:54 -05:00
Benjamin Peterson
f21ad92351
check possible recursive _as_parameter_ to prevent segfault ( closes #1838 )
2011-03-26 17:56:28 -05:00
Steven Bethard
539586296d
Issue #9348 : Raise an early error if argparse nargs and metavar don't match. (Merge from 3.2.)
2011-03-26 17:57:52 +01:00
Mark Dickinson
874d59ee91
Issue #11144 : Fix corner cases where float-to-int conversion unnecessarily returned a long.
2011-03-26 12:18:00 +00:00
Mark Dickinson
d3cb2f6e2c
Issue #11675 : Zero-out newly-created multiprocessing.[Raw]Array objects.
2011-03-26 10:02:37 +00:00
Raymond Hettinger
9aa5a34b6b
Issue #11666 : Teach pydoc to display full help for named tuples
2011-03-25 16:00:13 -07:00
Mark Dickinson
f9e9a6f403
Issue #11673 : Fix multiprocessing.[Raw]Array constructor to accept a size of type long. Thanks Robert Kern.
2011-03-25 22:01:06 +00:00
Kurt B. Kaiser
7548bce0ee
<Home> toggle failing on Tk 8.5, causing IDLE exits. Issue 3851.
2011-03-25 17:48:27 -04:00
Ezio Melotti
4664563f34
#2650 : Refactor re.escape and its tests.
2011-03-25 14:50:52 +02:00
guido@google.com
2bc23b8448
Add FTP to the allowed url schemes. Add Misc/NEWS.
2011-03-24 10:44:17 -07:00
guido@google.com
60a4a90c8d
Issue 22663: fix redirect vulnerability in urllib/urllib2.
2011-03-24 08:07:45 -07:00
Éric Araujo
f079c9bfbf
Fix obscure set crashers ( #4420 ). Backport of d56b3cafb1e6, reviewed by Raymond.
2011-03-22 23:47:32 +01:00
Raymond Hettinger
405a4717e1
Issue 10787: Document the probability density function for random.gammavariate.
2011-03-22 15:52:46 -07:00
Raymond Hettinger
911da47996
Issue #11628 : cmp_to_key should use__slots__.
2011-03-22 13:20:59 -07:00
Éric Araujo
374274db7f
Fix the total_ordering decorator to handle cross-type comparisons
...
that could lead to infinite recursion (closes #10042 ).
2011-03-19 04:29:36 +01:00
Michael Foord
8faa20751d
Issue #10979 . unittest stdout buffering now works for class and module fixtures.
2011-03-17 12:48:56 -04:00
Senthil Kumaran
5a9a5080cf
branch merge.
2011-03-17 14:43:21 +08:00
Senthil Kumaran
2e617307bc
merge from 2.6 branch
2011-03-17 14:24:35 +08:00
Senthil Kumaran
dfd1579e54
merge from 2.5 branch.
2011-03-17 14:23:24 +08:00
Senthil Kumaran
3853586e0c
Fix issue11442 - Add a charset parameter to the Content-type to avoid XSS attacks.
...
Patch by Tom N. (Backported from py3k codeline).
2011-03-17 12:34:18 +08:00
Kurt B. Kaiser
020d3d9856
<Home> toggle non-functional when NumLock set.
...
Issue3851
2011-03-17 00:05:38 -04:00
Michael Foord
4c9e91a092
Issue #10242 : backport of more fixes to unittest.TestCase.assertItemsEqual
2011-03-16 20:34:53 -04:00
Ronald Oussoren
2ab5994dbe
Issue #11569 : use absolute path to the sysctl command in multiprocessing to
...
ensure that it will be found regardless of the shell PATH. This ensures
that multiprocessing.cpu_count works on default installs of MacOSX.
Patch by Steffen Daode Nurpmeso.
2011-03-16 09:47:15 -04:00
Ezio Melotti
c2077b0d9b
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
2011-03-16 12:34:31 +02:00
Jesus Cea
6905de14fe
Close issue #8600 : test_gdb failures because innocuous warnings
2011-03-16 01:19:49 +01:00
Ezio Melotti
24b07bcba3
#11515 : fix several typos. Patch by Piotr Kasprzyk.
2011-03-15 18:55:01 +02:00
Ronald Oussoren
1aa999c49e
Issue #11500 : Fixed a bug in the os x proxy bypass code for fully qualified
...
IP addresses in the proxy exception list.
2011-03-14 18:53:59 -04:00
R David Murray
b44e1841d5
Port #11488 patch from 3.1 (changeset f816841bab03)
2011-03-14 10:01:12 -04:00
R David Murray
8c76c53019
merge heads
2011-03-13 22:40:59 -04:00
R David Murray
cdd5fc9013
#11490 : EACCES can also mean command not found
2011-03-13 22:37:18 -04:00
Mark Dickinson
2c8c62e64d
Issue 11131: Fix sign of zero result on plus and minus operations in ROUND_FLOOR rounding mode.
2011-03-12 11:05:32 +00:00
Vinay Sajip
3ae81137c8
Reverted bug fixes for #11444 (fc4d045e3170) and #11424 (b9d76846bb1c), which should not have been made in this branch.
2011-03-11 18:44:10 +00:00
Ned Deily
9d4836e731
Issue #5622 : Fix curses.wrapper to raise correct exception if curses
...
initialization fails.
2011-03-09 02:31:55 -08:00
Vinay Sajip
ee145ecc5f
Issue #11444 : Merge fix from 2.6.
2011-03-08 22:47:18 +00:00
Vinay Sajip
f4d0af460a
Issue #11444 : Lock handlers while flushing/closing during shutdown.
2011-03-08 22:39:55 +00:00
Benjamin Peterson
1af19d1ffd
transform izip_longest #11424
2011-03-07 22:50:37 -06:00
Vinay Sajip
923e6d29e5
Whitespace normalization.
2011-03-07 18:20:27 +00:00
Vinay Sajip
44b740ff28
#Issue 11424: merged fix from 2.6.
2011-03-07 15:07:58 +00:00
Vinay Sajip
8dd2a40bc7
Issue #11424 : Fix bug in determining child loggers.
2011-03-07 15:02:11 +00:00
Benjamin Peterson
bf12cdc24a
only do this sys.stderr replacing on CPython
2011-03-06 17:08:40 -06:00
Antoine Pitrou
d6f3a3e3a8
Issue #11391 : Writing to a mmap object created with
...
`mmap.PROT_READ|mmap.PROT_EXEC` would segfault instead of raising a
TypeError. Patch by Charles-François Natali.
2011-03-06 02:03:34 +01:00