Serhiy Storchaka
270767b2ce
Issue #16792 : Mark small ints test as CPython-only.
2012-12-27 23:07:00 +02:00
Chris Jerdonek
6f70fe8046
Issue #16790 : add some of the recent issue #16045 int tests to test_long.
...
This patch also provides a simple way to share tests going forward
between test_int and test_long.
2012-12-27 12:53:29 -08:00
Brian Curtin
33e05e7905
Fix #16759 . Convert DWORD registry values using unsigned long.
...
When converting REG_DWORD registry values into Python, the conversion
needs to be made from an *unsigned* long (k instead of i) to match the
DWORD type.
2012-12-27 14:37:06 -06:00
Serhiy Storchaka
a0b7e9c74c
Null merge.
2012-12-27 22:00:12 +02:00
Serhiy Storchaka
61006a2113
Issue #16504 : Catch SyntaxErrors raised by tokenizer in IDLE.
2012-12-27 21:34:23 +02:00
Brian Curtin
0e091b0365
Fix #14420 . Check for PyLong as well as PyInt when converting in Py2Reg.
...
This fixes a ValueError seen in winreg.SetValueEx when passed long
winreg.REG_DWORD values that should be supported by the underlying API.
2012-12-27 12:28:51 -06:00
Hynek Schlawack
4a5a4c2808
#16618 : Add more glob regression tests
...
Mostly about symlinks and str/unicode behavior.
Patch by Serhiy Storchaka.
2012-12-27 10:24:21 +01:00
Senthil Kumaran
2f01e239cb
Issue #16702 : Skip proxies for localhost in urllib2_localnet tests
2012-12-26 01:45:22 -08:00
Kristján Valur Jónsson
b0d1c37d73
Issue #14574 : Ignore socket errors raised when flushing a connection on close.
2012-12-25 22:46:32 +00:00
Kristján Valur Jónsson
2380feeff8
issue #879399
...
Fix line buffering of socket._fileobject
2012-12-25 13:04:50 +00:00
Ezio Melotti
94704fc25b
#16765 : remove unused import.
2012-12-25 14:25:47 +02:00
Senthil Kumaran
1974baadc6
Fix issue16713 - tel url parsing with params
2012-12-24 13:56:54 -08:00
Andrew Svetlov
332562f447
Keep ref to ECHILD in local scope ( #16650 )
2012-12-24 20:09:27 +02:00
Mark Dickinson
9fade768c8
Issue #13863 : fix incorrect .pyc timestamps on Windows / NTFS (apparently due to buggy fstat)
2012-12-24 16:33:18 +00:00
Andrew Svetlov
d8590ff209
Issue #16511 : Use default IDLE width and height if config param is not valid.
...
Patch Serhiy Storchaka.
2012-12-24 13:17:59 +02:00
Senthil Kumaran
f8a6b005fd
Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly
2012-12-23 09:00:47 -08:00
Andrew Svetlov
cddcafaf6b
Issue #16045 : add more unit tests for built-in int()
...
Patch by Chris Jerdonek.
2012-12-23 12:44:04 +02:00
Petri Lehtinen
ab7dd183f3
#8853 : Allow port to be of type long for socket.getaddrinfo()
2012-12-20 21:09:56 +02:00
Benjamin Peterson
a2d6d7121e
call close on the underlying stream even if flush raises ( #16597 )
2012-12-20 12:24:10 -06:00
Andrew Svetlov
bacf1bf355
replace threw with raised ( #16714 )
2012-12-19 22:49:01 +02:00
Andrew Svetlov
bd644608bd
revert comment wording ( #16714 )
2012-12-19 22:47:05 +02:00
Andrew Svetlov
4bb142b1b7
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:27:37 +02:00
Andrew Svetlov
80ab6c53c6
merge heads
2012-12-17 19:07:57 +02:00
Andrew Svetlov
ed3f6c6c79
Issue #16647 : save socket error details in LMTP.connect()
...
Patch by Serhiy Storchaka.
2012-12-17 19:06:43 +02:00
Giampaolo Rodola'
c2a8169aa3
Fix issue #16646 : ftplib.FTP.makeport() might lose socket error details. (patch by Serhiy Storchaka)
2012-12-17 14:30:48 +01:00
Antoine Pitrou
124ee8b1ab
Issue #16626 : Fix infinite recursion in glob.glob() on Windows when the pattern contains a wildcard in the drive or UNC path.
...
Patch by Serhiy Storchaka.
2012-12-16 13:55:47 +01:00
Hynek Schlawack
646c7b5086
#16664 : Add regression tests for glob's behaviour concerning "."-entries
...
Patch by Sebastian Kreft.
2012-12-16 12:30:57 +01:00
Antoine Pitrou
4113d2bd36
Issue #16298 : In HTTPResponse.read(), close the socket when there is no Content-Length and the incoming stream is finished.
...
Patch by Eran Rundstein.
2012-12-15 19:11:54 +01:00
Andrew Svetlov
33b9b71e8d
Issue #16582 : use int exit code in tkinter._exit
2012-12-10 00:05:08 +02:00
Antoine Pitrou
7dddec4e9d
Issue #16248 : Disable code execution from the user's home directory by tkinter when the -E flag is passed to Python.
...
Patch by Zachary Ware.
2012-12-09 14:46:18 +01:00
Éric Araujo
367efc254d
Branch merge
2012-12-08 22:45:09 -05:00
Éric Araujo
9e06e8d5de
Use proper skip instead of reporting success in one distutils test
2012-12-08 22:30:47 -05:00
Éric Araujo
2320fa08a8
Fix setup.py register failure with invalid rst in description ( #13614 ).
...
Original patch by Julien Courteau and Pierre Paul Lefebvre.
2012-12-08 22:26:57 -05:00
Antoine Pitrou
d38c990bb7
Issue #16602 : When a weakref's target was part of a long deallocation chain, the object could remain reachable through its weakref even though its refcount had dropped to zero.
...
Thanks to Eugene Toder for diagnosing and reporting the issue.
2012-12-08 21:15:26 +01:00
Éric Araujo
26ea4a08a3
Remove code unneeded after f833e7ec4de1
2012-12-08 14:41:39 -05:00
Victor Stinner
8c7c697e49
Issue #15747 : skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
...
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.
--
Kubilay Kocak (koobs) asked me on IRC to backport this fix to Python 2.7: done!
2012-12-04 10:07:16 +01:00
Antoine Pitrou
74635c9177
Fix test splitting in previous commit.
2012-12-03 21:08:43 +01:00
Antoine Pitrou
735f36edb8
Split the bigmem re test in two separate tests with different memory requirements.
2012-12-03 20:53:12 +01:00
Antoine Pitrou
b83575b0a5
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
...
Patch by Serhiy Storchaka.
2012-12-02 12:52:36 +01:00
Raymond Hettinger
80e9eedd12
Minor fixups. Early-out for equality test. Inline PREV/NEXT constants.
2012-12-01 19:22:02 -08:00
Benjamin Peterson
71966058a8
fix spelling
2012-11-30 16:13:14 -05:00
Benjamin Peterson
8a1a17b309
Remove redundant check for symlink. ( closes #6036 )
...
Patch by Bruno Dupuis.
2012-11-30 16:12:15 -05:00
Benjamin Peterson
ed10a30ed6
enumerate only requires an iterable ( closes #16573 )
...
Patch by Jonathan Kotta.
2012-11-29 10:55:22 -05:00
Andrew Svetlov
ac26a2e736
Issue #16477 : Close tarfile internal handlers in case of exception.
...
Patch by Serhiy Storchaka.
2012-11-29 14:22:26 +02:00
Ezio Melotti
43acbf1fd6
#16549 : fix test failures on Windows.
2012-11-29 05:08:54 +02:00
Ezio Melotti
def6ee5979
#16476 : Fix json.tool to avoid including trailing whitespace.
2012-11-29 02:22:49 +02:00
Ezio Melotti
d8feba904c
#16549 : Add tests for json.tools. Initial patch by Berker Peksag and Serhiy Storchaka.
2012-11-29 02:14:52 +02:00
Ezio Melotti
3a237ebcaa
#16333 : document a way to get rid of trailing whitespace when indent is used.
2012-11-29 00:22:30 +02:00
Ezio Melotti
282d331ec7
#16559 : Add more tests for the json module. Patch by Serhiy Storchaka.
2012-11-26 19:22:58 +02:00
Mark Dickinson
b1cc6aa2df
Issue #9011 : AST creation no longer modifies CST for negated numeric literals.
2012-11-25 17:11:33 +00:00
Mark Dickinson
1658797a9d
Issue #16339 : Document and test exec(stmt, globals, locals) form in Python 2.7.
2012-11-25 13:25:57 +00:00
Antoine Pitrou
508d7d356e
test_winsound should require the "audio" resource, as it does on 3.x.
...
(this should fix some buildbot test failures)
2012-11-24 18:25:25 +01:00
Ezio Melotti
ec6486d52d
#16306 : report only the first unknown option and add more tests. Patch by Serhiy Storchaka.
2012-11-23 18:46:11 +02:00
Raymond Hettinger
0ec8f48b99
Remove steps no longer needed once __del__ was removed
2012-11-20 21:42:44 -08:00
Raymond Hettinger
ec5046b76b
Fit nit: the return got dropped from an earlier check-in
2012-11-20 21:11:26 -08:00
Antoine Pitrou
b83ea144cc
Issue #1160 : Fix compiling large regular expressions on UCS2 builds.
...
Patch by Serhiy Storchaka.
2012-11-20 22:30:42 +01:00
Ezio Melotti
6451497df1
#7782 : add a test for test_iter.
2012-11-18 23:14:42 +02:00
Ezio Melotti
db5947f0f3
#16306 : Fix multiple error messages when unknown command line parameters where passed to the interpreter. Patch by Hieu Nguyen.
2012-11-18 13:46:38 +02:00
Ezio Melotti
9e94972eed
#14313 : zipfile now raises NotImplementedError when the compression type is unknown.
2012-11-18 13:18:06 +02:00
Antoine Pitrou
02512fb1cf
Issue #16408 : Fix file descriptors not being closed in error conditions in the zipfile module.
...
Patch by Serhiy Storchaka.
2012-11-17 23:56:53 +01:00
Antoine Pitrou
e3ae321222
Issue #15379 : Fix passing of non-BMP characters as integers for the charmap decoder (already working as unicode strings).
...
Patch by Serhiy Storchaka.
2012-11-17 21:14:58 +01:00
Jesus Cea
f34e4de3f5
Closes #16461 : Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz.
2012-11-17 03:38:17 +01:00
Antoine Pitrou
b704eab599
Issue #16453 : Fix equality testing of dead weakref objects.
...
Also add tests for hashing.
2012-11-11 19:36:51 +01:00
Gregory P. Smith
027d6fcebd
remove an obsolete comment
2012-11-11 10:13:06 -08:00
Gregory P. Smith
f047ba83e8
Refactor test_preexec_errpipe to not create an uncollectable reference cycle.
2012-11-11 09:49:02 -08:00
Nadeem Vawda
04050b80b1
Issue #15677 : Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
...
Patch by Brian Brazil.
2012-11-11 13:52:10 +01:00
Gregory P. Smith
c3197254ac
whitespace fix
2012-11-11 02:01:56 -08:00
Gregory P. Smith
211248b214
Fix issue #16140 bug that the fix to issue #16327 added - don't double
...
close subprocess.PIPE file descriptors when the child encounters an
error prior to exec.
2012-11-11 02:00:49 -08:00
Gregory P. Smith
9d3b6e9822
Fixes issue #16327 : The subprocess module no longer leaks file descriptors
...
used for stdin/stdout/stderr pipes to the child when fork() fails.
2012-11-10 22:49:03 -08:00
Gregory P. Smith
f2705aebb0
Fixes issue #14396 : Handle the odd rare case of waitpid returning 0
...
when not expected in subprocess.Popen.wait().
2012-11-10 21:13:20 -08:00
Nadeem Vawda
3c30970d29
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
...
Patch by Serhiy Storchaka.
2012-11-11 03:14:56 +01:00
Nadeem Vawda
252f4dc6c9
Issue #16350 , part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
...
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
2012-11-11 02:14:15 +01:00
Chris Withers
2cc0b07a4c
Bug #16441 : avoid excessive memory usage working with large gzip files
2012-11-09 15:48:17 +00:00
Ezio Melotti
9b19c4bea9
#16433 : fix docstring of assertNotEqual.
2012-11-08 11:08:39 +02:00
Hynek Schlawack
b271b3e188
Issue #15001 : fix segfault on "del sys.modules['__main__']"
...
Patch by Victor Stinner.
2012-11-07 09:41:28 +01:00
Nadeem Vawda
6cad3712b3
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
...
Patch by Serhiy Storchaka.
2012-11-05 00:55:06 +01:00
Ezio Melotti
c18cc0edff
#5057 : the peepholer no longer optimizes subscription on unicode literals (e.g. u"foo"[0]) in order to produce compatible pyc files between narrow and wide builds.
2012-11-05 00:03:21 +02:00
Jesus Cea
93d628b378
Closes #16183 : ZipExtFile object close without file handle closed (backporting of Issue #9846 )
2012-11-04 02:32:08 +01:00
Ezio Melotti
67dc4a87fc
#8401 : assigning an int to a bytearray slice (e.g. b[3:4] = 5) now raises an error.
2012-11-03 21:10:45 +02:00
Ezio Melotti
ef3173877c
#12759 : sre_parse now raises a proper error when the name of the group is missing. Initial patch by Serhiy Storchaka.
2012-11-03 20:31:12 +02:00
Ezio Melotti
7d24b1698a
#16152 : fix tokenize to ignore whitespace at the end of the code when no newline is found. Patch by Ned Batchelder.
2012-11-03 17:30:51 +02:00
Andrew Svetlov
5018db76aa
Issue #1207589 : Add Cut/Copy/Paste items to IDLE right click Context Menu
...
Patch by Todd Rovito.
2012-11-01 22:39:14 +02:00
Antoine Pitrou
0552fc2b8a
Issue #16230 : Fix a crash in select.select() when one the lists changes size while iterated on.
...
Patch by Serhiy Storchaka.
2012-11-01 20:13:54 +01:00
Antoine Pitrou
e9e35c3f6b
Issue #16228 : Fix a crash in the json module where a list changes size while it is being encoded.
...
Patch by Serhiy Storchaka.
2012-11-01 20:07:40 +01:00
Mark Dickinson
4ca83ec72d
Issue #16377 : fix missed test due to incorrect indentation in test_bisect. Thanks Yury Selivanov.
2012-10-31 20:38:52 +00:00
Benjamin Peterson
0ec820fc5f
only fast-path fromkeys() when the constructor returns a empty dict ( closes #16345 )
2012-10-31 14:05:55 -04:00
Nadeem Vawda
8e0dfea81c
Add test for BZ2Decompressor.decompress("") after end of stream.
2012-10-28 15:20:35 +01:00
Andrew Svetlov
41c25ba451
Issue #14570 : Document json sort_keys parameter properly.
...
Patch by Chris Rebert.
2012-10-28 14:58:52 +02:00
Mark Dickinson
75d3600466
Issue #14700 : Fix buggy overflow checks for large precision and width in new-style and old-style formatting.
2012-10-28 10:00:46 +00:00
Georg Brandl
08114d40e9
changeset: 80007:49e4541f2aef
...
parent: 80003:be83cbf4a789
parent: 80006:32df036e6b75
user: Georg Brandl <georg@python.org>
date: Sun Oct 28 10:50:11 2012 +0100
summary: merge with 3.3
2012-10-28 10:51:35 +01:00
R David Murray
54eed2e36d
#12890 : don't emit <p> tags in text mode when logdir specified.
...
Patch by Jeff McNeil.
2012-10-27 14:42:36 -04:00
R David Murray
3e66f0d14d
#15043 : Improve test_gdb support of gdb >= 7.4.
...
Instead of requiring the tester to manually add the path to the python-gdb.py
file in the checkout to their .gdbinit file, add it automatically when
invoking gdb in the test.
2012-10-27 13:47:49 -04:00
Senthil Kumaran
f8d370e30d
Add some tests in 2.7 for Issue #16250
2012-10-27 03:48:40 -07:00
Trent Nelson
e9992292be
Issue #16274 : Fix test_asyncore on Solaris.
2012-10-26 22:21:46 -04:00
Ezio Melotti
b74e02e6c2
#16303 : remove extra quotes from exception and add (). Initial patch by Vladimir Rutsky.
2012-10-24 23:43:02 +03:00
Petri Lehtinen
9ad6a563a7
#15040 : Close files in mailbox tests for PyPy compatibility
...
Original patch by Matti Picus.
2012-10-23 14:42:13 +03:00
Ned Deily
e3d47128c5
Issue #15853 : Prevent IDLE crash on OS X when opening Preferences menu
...
with certain versions of Tk 8.5. Initial patch by Kevin Walzer.
2012-10-22 15:13:01 -07:00
Nadeem Vawda
45dba1da32
Issue #14398 : Fix size truncation and overflow bugs in bz2 module.
2012-10-21 23:09:08 +02:00
Nadeem Vawda
dd72b3f6b7
Issue #5148 : Ignore 'U' in mode given to gzip.open() and gzip.GzipFile().
2012-10-21 18:15:05 +02:00
Antoine Pitrou
c30848344c
Fix whacky spacing in test_wsgiref
2012-10-21 14:10:29 +02:00